Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do I make Classic sonic's spindash code?
- SMKAS
-
500+ posts
How do I make Classic sonic's spindash code?
I don't know which key is spin dash, but first upload the spin dash, I'll assume it is the first costume of the sprite and its all in order, if not, please reply on where it begins and ends.
Lets-a-go(This is sonic right?)
Lets-a-go(This is sonic right?)
forever
if <key [SPIN DASH v] pressed?> then//as i said, dont know which key.
reset timer
switch costume to [First Spin Dash Costume v]
repeat until <(timer) = []>//how long does spin dash last?
if <(costume #) < [How many costumes are needed for spin dash]>then
next costume
else
switch costume to [First Spin Dash Costume v]
end
end
repeat until <not <key [SPIN DASH v] pressed?>>
movement block::custom//reason it needs to be a custom block is because it's a sonic game, multiple loops and what-not
end
end
end
- AustinTexas37
-
43 posts
How do I make Classic sonic's spindash code?
Just one questionis default text a variable?
- AustinTexas37
-
43 posts
How do I make Classic sonic's spindash code?
I tried and this does not work
- SMKAS
-
500+ posts
How do I make Classic sonic's spindash code?
Link(I mean project line, not link from sonic) Please.
And also, do not just copy the code, key spin dash is what key spin dash is, so change it to the key you need to use for spin dash. You have to input the length of the spin dash into the script as well, or the animation won't run since empty means 0. The reason its like that, is because in the sonic games, before the spin dash, sonic spins in place for sometime(not sure if this is extendable please tell, I don't play the sonic games, or any console game for that matter so assume I know nothing about it) then spin dashes forwards.
For me to be able to improve my script, I need more info on how the spin dash works. Does holding the key make it last longer. Which button do you use for the spin dash, etc.
Oh yeah the thing below is my signature, not real blocks were used in my signature..
And also, do not just copy the code, key spin dash is what key spin dash is, so change it to the key you need to use for spin dash. You have to input the length of the spin dash into the script as well, or the animation won't run since empty means 0. The reason its like that, is because in the sonic games, before the spin dash, sonic spins in place for sometime(not sure if this is extendable please tell, I don't play the sonic games, or any console game for that matter so assume I know nothing about it) then spin dashes forwards.
For me to be able to improve my script, I need more info on how the spin dash works. Does holding the key make it last longer. Which button do you use for the spin dash, etc.
Oh yeah the thing below is my signature, not real blocks were used in my signature..
Last edited by SMKAS (Oct. 2, 2020 01:07:19)
- Discussion Forums
- » Help with Scripts
-
» How do I make Classic sonic's spindash code?