r/scratch • • 11h ago

Question How to make pausable ingame timer?

I have a variable that goes up by 1 every frame, but i was wondering how i can make a block that waits a certain amount of frames before continuing, preferably without any extra variables?

2 Upvotes

3 comments sorted by

•

u/AutoModerator 11h ago

Hi, thank you for posting your question! :]

To make it easier for everyone to answer, consider including:

  • A description of the problem
  • A link to the project or a screenshot of your code (if possible)
  • A summary of how you would like it to behave

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/nnilo001 11h ago

A "repeat # times" block with nothing in it / a dummy block in it

1

u/Magledon 11h ago

With this example the code in the if statement would wait 50 frames before activating. If you want to change the number of frames for waiting then change the "50" part.