Nice example Dave :)
Printable View
Nice example Dave :)
Thank you both for taking the time to make the example files!!! I am downloading them now to take a look!
Dave - I have been studying your example files and I am starting to understand all the events. One thing I am uncertain over is line 23 where for the player, the internal flag is set to off. Perhaps it is my lack of understanding of flags in this instance. I have read they are similar to booleens but again I not certain why one is needed in this case.
Look for the event where the flag is set to on, the flag is default set to off.
A flag is just an alterable value with two modes: ON and OFF.
In this example, when you press shift the flag is set to on, and when you do not press shift the flag is set to off.
This means that every time you want the player to jump from the ground, you need to press shift again. (You can't keep holding shift the whole time.)
This restriction is not in the first frame, only in the second.
Note: in line 23, the flag is not set to off, it is checking if the flag is off.
the flag is set on in line 27, and set off in line 28.
Advaith - thanks, I think I understand it now.