Button Triggering problem

0 favourites
  • 2 posts
From the Asset Store
Game Triggers is as versatile as a Swiss army knife, and will be a great resource for any type of game you're creating.
  • Can you see what's wrong in this code - I'm stuck with it.

    <img src="https://dl.dropbox.com/u/104684620/Capture.JPG" border="0" />

    I'm trying to control a triggerable object with a button. When the button is pressed, then it finds the Triggerable Object with the TargetID and it sets IsTriggered. This works fine.

    When the button is let go, then it should do the same - find the Triggerable Object with the TargetID and set IsTriggered to false. But this is not working.

    Any ideas?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Well, I've solved it - by checking against the animation frame of the button (is the button down as well). But I still don't see why it doesn't work as written.

    (Although it's neater now since previously the event system was spamming away on every button that the player wasn't touching)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)