Discuss Scratch

stories31
Scratcher
100+ posts

how to make a speedrun mode

here is how to make a speedrun mode for your 2d platformer:

place this in the player character scripts:
when [b v] key pressed
go to x: () y: ()
switch backdrop to [backdrop1 v]
this places your character at the spawn point, and switches the backdrop to the first level.
make sure to put the spawn point coordinates in the ‘go to’ block!

place these two in a 1x1 sprite, preferably called ‘speedrun’:
when [b v] key pressed
reset timer
go to x: (240) y: (-180)
forever
say (timer)
end
this resets the timer, and displays it in the corner of the screen.

when [b v] key pressed
stop all sounds
forever
play sound [music v] until done
end
this stops the current music, and plays a new track.

hope this helped! here is an example of it being used in a game, press ‘b’ during gameplay

Last edited by stories31 (July 17, 2018 18:30:38)

mullafacation
Scratcher
100+ posts

how to make a speedrun mode

Wrong forum! Help With Scripts is where you ask questions about scripts like “How Do I Make A Platformer Game?” and people answer them. You don' t put ideas about scripts people could use. If you want to share your ideas, do it in Project ideas
NewBoi123
Scratcher
10 posts

how to make a speedrun mode

how do i stop the timer when i reach the finish?
_TYLHAR494_
Scratcher
3 posts

how to make a speedrun mode

NewBoi123 wrote:

how do i stop the timer when i reach the finish?
Set you the repeat until and a variable so you need to make it so it repeats until you get to a certain costume say make a blank sprite with two costumes and use the costume detector block and set it so when the win pops up the costume changes stoping the variable brom changing
The12thScratcher
Scratcher
11 posts

how to make a speedrun mode

s

Last edited by The12thScratcher (Feb. 23, 2023 19:09:47)

kfchikinfiter
Scratcher
100+ posts

how to make a speedrun mode

The12thScratcher wrote:

s
please don't necropost

Powered by DjangoBB