Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make spikes in platformers
- Chalkisfunny
-
Scratcher
3 posts
How to make spikes in platformers
This may not work depending on how your platformer is coded, but first, you wanna make the sprite, then go to your hitbox (And or player sprite), then make your block, (You can call it anything) then put an “if-then” block, (This depends on if your spike is shaded) then go to operators then go to the “or” block, place it inside the if-then block. Then go to sensing, then put the “Touching Color” block in them, make sure it is the same as the spike color. Then put a Go to SpawnX and SpawnY, if it is not shaded, just remove the “or” block. Hope this helped
- theguythatiscool-
-
Scratcher
5 posts
How to make spikes in platformers
when green flag clicked
forever
if <touching [ spike] ?> then
broadcast [ die]
end
end
- qloakonscratch
-
Scratcher
1000+ posts
How to make spikes in platformers
What that guy saidHello! I understand you want to help users but this is meant to ask for help. If you want, you can create a project about it and post it in the Show and Tell forum to help people!
- ChocolateBarYoutube
-
Scratcher
4 posts
How to make spikes in platformers
where do i find the block that has the sprite name
- goofygooey
-
Scratcher
10 posts
How to make spikes in platformers
- e but here
when green flag clicked
forever
it touching thing ? then
broadcast die
- goofygooey
-
Scratcher
10 posts
How to make spikes in platformers
- testing out stuff
when green flag clicked
forever
if <touching [spikes v] ?> then
broadcast [death v]
end
- goofygooey
-
Scratcher
10 posts
How to make spikes in platformers
if you want a force field powerup to be invincible then here:
when green flag clicked
forever
if <touching [ v] ?> then
broadcast [die v]
else
if <(FF)(FF) = [1]> then
end
end
- Erikgamergreen
-
Scratcher
15 posts
How to make spikes in platformers
put this in the player sprite
and this
I Hope this Helps!
when green flag clicked
forever
if <touching [ Spikes v] ?> then
play sound [ded v]
broadcast [ded v]
end
end
and this
when I receive [ded v]
hide
forever
go to x: (0) y: (0)
end
I Hope this Helps!

Last edited by Erikgamergreen (Aug. 24, 2023 00:01:46)
- goofygooey
-
Scratcher
10 posts
How to make spikes in platformers
and then you cant just put anything
What that guy saidHello! I understand you want to help users but this is meant to ask for help. If you want, you can create a project about it and post it in the Show and Tell forum to help people!
What that guy saidHello! I understand you want to help users but this is meant to ask for help. If you want, you can create a project about it and post it in the Show and Tell forum to help people!
- goofygooey
-
Scratcher
10 posts
How to make spikes in platformers
Hello! I understand you want to help users but this is meant to ask for help. If you want, you can create a project about it and post it in the Show and Tell forum to help people!sure i wanna test it
GOBO HAS TAKEN MY ENTIRE FAMILY OF NEUTRON STARS
My mother always told me “If life gives you lemons, calculate the mass of a neutron star.” -Pluto
Hey, I'm qloakonscratch, and I'm not a neutron star. I promise. I'm here with Dr. Doofenshmirtz and Ferb. Today, we made the neutron star-inator, which will turn anything into a neutron star. Wanna test it?
- Discussion Forums
- » Help with Scripts
-
» How to make spikes in platformers