[Script] How to check for triggers?

For questions about using Classic.

Post » Mon Mar 15, 2010 11:32 am

How would I check whether a trigger has been triggered or not using Python script exclusively?

Such as OnAnyClick (MouseKeyboard object).
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Mon Mar 15, 2010 11:56 am

I think this is a limitation in Construct's Python integration. The best thing to do is put a python script as a subevent to the trigger event. Python scripts run where events run, so you can have a kind of script-and-events meld.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon Mar 15, 2010 12:02 pm

Hmm, alternatively I could use trigger events to alter Python variables and then check those in the script. That way I can preserve large blocks of script without breaking it up with events.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests