Discuss Scratch

YoshiGPLS
Scratcher
2 posts

How do I make wall collision work in my platformer game?

I've figured out how to make a death controller, and a jump & gravity controller, but wall collision I have no idea how to make. The color for the ground is #00ff00. Any help is appreciated!
FFOOOODD12345
Scratcher
25 posts

How do I make wall collision work in my platformer game?

if you have an “X speed” variable you can do…

define a new block (Run without screen refresh)
change y by (3) (to move off the ground)
if <touching [ground sprite]?> then
change x by (X speed)
end
FFOOOODD12345
Scratcher
25 posts

How do I make wall collision work in my platformer game?

oops, what I meant was
change y by (3)
to move off the ground


and also, you can put
when green flag clicked
forever
a new block
end

Powered by DjangoBB