Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Counting...steps? [resolved]

I know Modify Variable has an option for steps but that only counts the current number and therefore total in someway. Is there a way via eventing or scripting (scripting morely) to count every step after the script line/event has been activated, and then a conditional branch can be used to check if the step variable is equal or exceeded a certain number? Like, Pokemon egg hatching.
 
All you have to do is set a variable to the current number of steps. Then, when you want to check, set a second variable to the new current number. Then subtract the old variable from the new, and check the result.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top