[Tutorial] How to count every floors




Tutorial Construct 2.
How to count every floors.
Similiar project can create new file and search infinite jumping on construct 2.
Then, place an avent at this tutorial.



Global variable : 
score type number set as “0”.

Instance variable :
landed type number set as “0”.


Needed object :   
– Sprites
– Text
– Keyboard

See the picture
 

 

Listings
 

 1. Add instance variable ”landed’ and behavior Jumpthru to object platform.
See the picture.

 

 2. Place an event, count 1 if player jump and landed every platform.
See the picture.

 




Output

 



Get real time updates directly on you device, subscribe now.

Leave A Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More