Discuss Scratch

buddle
Scratcher
19 posts

how to make a sprite stop at a wall

all I know is if your wanting a game with gravity


whenclickedforeverifnotcoloristouching?thenrepeatuntilcoloristouching?changeyby-3
HarryPotterGeek500
Scratcher
100+ posts

how to make a sprite stop at a wall

Create a sprite that is the same color as you background, so you can't see it. Then you can use this script:
glidesecstox:y:iftouching your invisible sprite?thenstop
lbruns
Scratcher
500+ posts

how to make a sprite stop at a wall

HarryPotterGeek500 wrote:

Create a sprite that is the same color as you background, so you can't see it. Then you can use this script:
glidesecstox:y:iftouching your invisible sprite?thenstop

Not sure what this has to do with his topic, but here's the solution.

Depending on how much your increasing or decreasing movement this is what you'll use

Inside the moving script you should put if right arrow is touching a wall then do nothing this should just make your sprite not go through now it would be different if you have horzvelocity, but if you have any questions just ask.
buddle
Scratcher
19 posts

how to make a sprite stop at a wall

u can also do this
whenclickedforeverifcoloristouching?thengotox:variabley:variableifnotcoloristouching?thensetto xpositionsettoyposition
star50847
Scratcher
1 post

how to make a sprite stop at a wall

how will this tell me how to stop a sprite at walls
gtpeu
Scratcher
1 post

how to make a sprite stop at a wall

i need to know how to do stop with i out if touching color green and blue
bststar9
New Scratcher
3 posts

how to make a sprite stop at a wall

i need help knowing to jump can you sove it
creativescratchgirl
Scratcher
7 posts

how to make a sprite stop at a wall

gtpeu wrote:

i need to know how to do stop with i out if touching color green and blue




whenclickediftouchingcolorwhatever color?thenchangexbywhatevernumberyouusetomove
hamfistperson
New Scratcher
1 post

how to make a sprite stop at a wall

i can't do this!!!!!!!!!!!!!!!!!!!!!1
YubNubEwok
Scratcher
1000+ posts

how to make a sprite stop at a wall

bststar9 wrote:

i need help knowing to jump can you sove it
Hi, please make a new topic to ask a question for help.
ScriptedAwesome
Scratcher
1000+ posts

how to make a sprite stop at a wall

Ah, I have done a lot of time on Scratch and I still haven't figured it out… just grab a platformer script from someone else, it's all the same when it comes down to the basics
-_Illusion-_
Scratcher
79 posts

how to make a sprite stop at a wall

how did i find this thread even wut
deck26
Scratcher
1000+ posts

how to make a sprite stop at a wall

-_Illusion-_ wrote:

how did i find this thread even wut
Please don't spam or necropost.
Alex47_
New Scratcher
4 posts

how to make a sprite stop at a wall

bststar9 wrote:

i need help knowing to jump can you sove it

do this
whenkeypressed
changeyby+...
waitsecs
changeyby-...
Kraken_Games
Scratcher
100+ posts

how to make a sprite stop at a wall

Alex47_ wrote:

bststar9 wrote:

i need help knowing to jump can you sove it

do this
whenkeypressed
changeyby+...
waitsecs
changeyby-...

Please don't necropost - this topic is very old.
098765432154321
Scratcher
500+ posts

how to make a sprite stop at a wall

bststar9 wrote:

i need help knowing to jump can you sove it

Please make your own topic.
Mr_Custom
Scratcher
100+ posts

how to make a sprite stop at a wall

Sorry if this topic is closed, but you could use the script in the project (graphics are NOT mine!): https://scratch.mit.edu/projects/309208937
But please give me credit if you use it (It took me a WHILE!)
kzooy
Scratcher
44 posts

how to make a sprite stop at a wall

bststar9 wrote:

i need help knowing to jump can you sove it
ok make a varable called “Yv” and do this –>
ifthentouching?endrepeatuntilnottouching?settochangeyby


hope that helped

Powered by DjangoBB