Discuss Scratch
- Kami-ko
-
Scratcher
100+ posts
PAUSE scripts
A well designed premium Scratch game would have a loop that looks like this:forever
frame ::custom
wait ((1)/(30)) secs
end
And, of course, it becomes a matter of recognizing the pause button input each frame. The in-game frame time also pauses. No problem with that. The problem is what happens to the music.
Can you explain this in further detail?
- RacecarFox16
-
Scratcher
5 posts
PAUSE scripts
I made a pausing & animating script you can use easily
:
NOTE: Frame# = the last frame + Animate until Frame# (last number of frames)
:NOTE: Frame# = the last frame + Animate until Frame# (last number of frames)
define Animate until frame (Frame#) (FPS)
repeat until <((Frame#) - (costume [number v])) = (0)>
wait until <(Paused?) = (0)>
next costume
wait (FPS) secs
Last edited by RacecarFox16 (June 7, 2025 21:35:38)