Stopping a +1 Global Variable Condition

Get help using Construct 2

Post » Mon Dec 03, 2012 12:51 am

I'm currently making a shark game where you must save people from sharks. There are two types of sharks; the "ManEater" and the regular shark. The "ManEater" only attacks people, when there is no people left, then the "ManEater" will come after you. I tried to make this by making a global variable called "PersonNumber", i planned that it would count the number of people left, once there was no more, then the "ManEater" would come for you. I then made the condition; Person Is on layer 1 System Add 1 to PersonNumber. After that, i put System PersonNumber = 0 ManEater add 1 to PersonNumber. I couldn't figure out the problem so i visualized it by adding a text counter on the HUD. It seems as if the PersonCounter keeps adding by 1 rapidly and when there are no more people, it stops. How do i get it to work? Thank you.
B
2
Posts: 2
Reputation: 304

Post » Mon Dec 03, 2012 2:12 am

Use the trigger once while true event
B
40
S
12
G
7
Posts: 603
Reputation: 7,656

Post » Mon Dec 03, 2012 3:19 am

My god... THANK YOU SO MUCH SIR! I GREATLY APPRECIATE YOUR HELP! YOU ARE INSPIRATION TO MANKIND. I WILL DO MY BEST TO POLISH THIS GAME UP TO AN EXTENT THAT IT WILL BECOME BEAUTIFUL.
B
2
Posts: 2
Reputation: 304


Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt, mjj1990 and 6 guests