Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Help with creating power up blocks and enemy movement (Super Mario Bros)
- SL_Rebirthed
-
Scratcher
4 posts
Help with creating power up blocks and enemy movement (Super Mario Bros)
https://scratch.mit.edu/projects/1229465841/
I am recreating the game Super Mario Bros on Scratch and I was wondering; HOW would I go on about making bricks, question mark blocks, etc. My first thought was to do the same cloning process as the ground sprite, which is the current result for the project above, but this is a really unorthodox solution. putting multiple bricks and or question mark blocks in the 1,0 costume makes them all one big group rather than their own individual blocks. a different cloning method perhaps?
More importantly, how would these blocks be triggered in the first place? mushroom movement is especially hard to figure out as Mario is the only sprite programmed to move around the level. the same could be applied to enemies as they have similar movement to the mushrooms except they dont get spawned by question mark blocks.
Anything helps, thank you.
I am recreating the game Super Mario Bros on Scratch and I was wondering; HOW would I go on about making bricks, question mark blocks, etc. My first thought was to do the same cloning process as the ground sprite, which is the current result for the project above, but this is a really unorthodox solution. putting multiple bricks and or question mark blocks in the 1,0 costume makes them all one big group rather than their own individual blocks. a different cloning method perhaps?
More importantly, how would these blocks be triggered in the first place? mushroom movement is especially hard to figure out as Mario is the only sprite programmed to move around the level. the same could be applied to enemies as they have similar movement to the mushrooms except they dont get spawned by question mark blocks.
Anything helps, thank you.
Last edited by SL_Rebirthed (Oct. 15, 2025 22:37:35)
- PossiblyCreeper7789
-
New Scratcher
38 posts
Help with creating power up blocks and enemy movement (Super Mario Bros)
i dont know how to give the blocks collision, but i do know how to make enemies move left and right
when green flag clicked
go to x: [x pos] y: [above the ground but not touching the ground]
set rotation style [left-right v]
point in direction (90)
forever
repeat until <touching [ground v] ?>
change x by [number]
end
if <touching [ground v] ?> then
change x by (-3)
point in direction (-90)
end
repeat until <touching [ground v] ?>
change x by [negative number]
end
if <touching [ground v] ?> then
change x by (3)
point in direction (90)
end
end
- SL_Rebirthed
-
Scratcher
4 posts
Help with creating power up blocks and enemy movement (Super Mario Bros)
bump
- Discussion Forums
- » Help with Scripts
-
» Help with creating power up blocks and enemy movement (Super Mario Bros)

