triggers?

For questions about using Classic.

Post » Thu Jul 15, 2010 1:18 am

I have been using Construct for a bit, but I still can't figure out how to make triggers.
B
1
G
2
Posts: 2
Reputation: 629

Post » Thu Jul 15, 2010 1:45 am

What kind of triggers are you trying to make?
B
9
S
2
G
4
Posts: 346
Reputation: 2,726

Post » Thu Jul 15, 2010 1:54 am

Hmm, 'triggers' is a bit ambiguous. Any condition->action group could be considered a trigger.

I'll take a stab at what I think you might refer to. In many games, the player walking over a certain spot might trigger an event, or some similar thing?

For example, a hidden trigger spot can be made by making a sprite to serve as the trigger point, setting it to be 'invisible on start', giving it a private variable 'triggered', then setting a couple of events like so:

+ player: player overlaps trigger
+ trigger: Value 'triggered' Equal to 0
-> trigger: Set 'triggered' to 1
-> (do stuff that only happens once, unless 'triggered' is set back to 0)


OR... for duration effects and such:

+ player: player overlaps trigger
+ trigger: Value 'triggered' Equal to 0
-> trigger: Set 'triggered' to 1
-> (do stuff that only happens right when triggered)

+ trigger: Value 'triggered' Equal to 1
-> (do stuff that keeps happening until you set 'triggered' back to 0 to reset the trigger, or perhaps 2 to make it a one-time only effect)


Anyway, if I'm way off the mark, you may want to explain in detail what you want to achieve.
B
3
S
2
G
2
Posts: 187
Reputation: 1,449

Post » Thu Jul 15, 2010 5:09 am

Thanks for this Silent C. Whether it's what redwhizrd is after or not, it's something I wanted to know.
Thanks again.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,841
Reputation: 48,283

Post » Fri Jul 16, 2010 2:52 am

This is actually what I wanted to know, thank you very much.
B
1
G
2
Posts: 2
Reputation: 629


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests