I forgot how to make a barrier in scratch help

id: 753265

category: Help with Scripts

posts: 6

ripsunshine ripsunshine loading
How do you make a barrier in a scratch platformer?

MineTurte MineTurte loading

ripsunshine wrote:

How do you make a barrier in a scratch platformer?

What do you mean a barrier? Like collision?
Dude I want to know how to do this too
BigNate469 BigNate469 loading
If by barrier you mean “wall that you can't get over”, just make a wall as high as the stage. Otherwise, elaborate more upon what you want.

Also, walls in platformers are made in a few different ways depending upon the engine.
ripsunshine ripsunshine loading
@MineTurte

Yes! that that's what I meant. I forgot how to wall collision
jelte1908 jelte1908 loading
make a sprite with barrier

forever
if <touching [ barrier] ?> then
go to x: (variablex) y: (variabley)
end
end

and

when green flag clicked
forever
set [variablex] to (x position)
set [variabley] to (y position)
end