We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

puzzle mix

Home Forums General Questions puzzle mix

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34244

    i have 2 different object and one (html interface button)
    i want to make an object 1 active. so when i click on interface button it will show components on that object 1.
    and if i active another object(object 2) and click on same interface button, show components for object 2.
    how can i do this?
    i try to use puzzles like this .
    but the problem is if i click on first object and then second object and after i use interface button. it will show components on both object in same time

    what can i do?

    Attachments:
    You must be logged in to view attached files.
    #34250

    Hi, I think you can do it by using the following puzzle setup:
    puzzles.png

    You can use a variable puzzle to store the active (or last clicked) object. This is what “when clicked” does in the example.

    And inside “on event of click” you just check if that variable equals to a particular object, or in other words which object is currently active, and then show/hide their corresponding components.

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead developer at Soft8Soft.

    #34269

    thank you so much, it was great

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.