Technical explanation

For educators around the world who use Construct 2 in classrooms

Post » Tue Apr 19, 2016 8:54 am

Hey

I'm very new to Construct 2, also to Javascript, and I would like to know more about how Construct 2 works on the technical side of things. Reason for this is that sometimes I don't understand how Construct 2 runs trough the code (the events and actions). For example, if I'm looping trough some actions and using the "Wait" function (I know now that I have to use seconds * loopindex, but thats another story) it loops, but as it loops other actions are running simultaneously, so they are not waiting till to loop ends.

Anyway, maybe there was a mistake by my side. Long story short: Is there an explanation how Construct 2 runs the events and actions on a technical view of things? I think that would help me understand the behaviour a bit more.

Thank you
B
5
Posts: 6
Reputation: 237

Post » Tue Apr 19, 2016 9:37 am

The wait action delays stuff to run later. It doesn't make the events pause.
For more info the manual is a good source I think.

Edit:
https://www.scirra.com/manual/75/how-events-work
https://www.scirra.com/tutorials/56/how ... ait-action
B
94
S
33
G
113
Posts: 5,356
Reputation: 73,273


Return to Education and Construct 2

Who is online

Users browsing this forum: No registered users and 0 guests