Activating an event action on a second button press

For questions about using Classic.

Post » Sat Jun 05, 2010 6:24 am

There tons of ways to do this, but you have to remember simple is elegant, even if it just feels quick and dirty.

+ System: Start of layout
-> Function: Set return value to 0

+ MouseKeyboard: On Left mouse button Clicked
-> Function: Set return value to Function.Return+1

+ System: Function.Return Equal to 1
-> Sprite: Flash for 5 seconds with 0.05 seconds interval

+ System: Function.Return Equal to 2
-> System: Go to layout 1 with transition "None" lasting 0 MS
Image Image
B
161
S
48
G
91
Posts: 7,357
Reputation: 67,269

Post » Sat Jun 05, 2010 3:16 pm

Great minds at work ;)

Thanks for all the info and examples, guys! I can use a lot of this stuff in the future, too.

@Lucid...I understand what you're saying now. That's a good tip. I have the global variable in already, but I tested your example and it works well too. I'm thinking about doing a mini-game where I would use a similar approach. I'm going to hide things under items and have the user find it by destroying the front sprite.
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests

cron