problem toggling effects on click

Get help using Construct 2

Post » Thu Jun 13, 2013 2:10 pm

I have a tile-able background object that I'm trying to toggle an effect associated with it on and off through left mouse click with very little success below are the events I am using to try to trigger it however no matter what i do ev if i create sub events it does not work
i cant get the image to display in the pos but heres the drop box link to the screencapture

https://www.dropbox.com/s/peyj30z9qjlvh4u/toggle%20issue.png

does anyone have any ideas?

thanks

LobsetrbobLobsterbob2013-06-13 14:15:22
B
2
S
1
G
1
Posts: 9
Reputation: 670

Post » Thu Jun 13, 2013 5:17 pm

What's happening is that set of code is constantly running, so when you click and deactivate it, the next line of code says oh it's deactivated, activate it. Next time you click it does the same thing.

I'll try to whip up a example.
B
100
S
31
G
11
Posts: 1,552
Reputation: 21,497

Post » Thu Jun 13, 2013 5:33 pm

Here is an example using a function and a boolean instance variable.

Toggle Sprite Visible / InvisibleArcadEd2013-06-13 17:34:18
B
100
S
31
G
11
Posts: 1,552
Reputation: 21,497


Return to How do I....?

Who is online

Users browsing this forum: chrisinfinger, Google [Bot], oosyrag, R0J0hound and 10 guests