Count number of times a frame has restarted?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I'm currently working on a small platforming game that requires resetting the current frame whenever the player gets through it. I need a way to count how many times the frame has reset, but naturally any counter I try to use just gets reset back to zero when the frame resets. Is there any way to work around this?

    Thanks and appreciation in advance.

  • Use a global value. Global values are internal counters in your game that save the value across multiple frames. When your frame resets, add 1 to Global Value A (located under the special conditions). You can rename this global values too in the properties window if you select your application/game name in the workspace toolbar. It's under the 4th tab named "Values" similar to changing alterable value names when selecting active objects.

    Then always set a counter in game to that global value A. That should work.

    Custom A* Pathfinding in MMF2: Please login to see this link.
    Random Tile World Generation: Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!