Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How can i make a floor that my Sprite wont go below?
- wag123
-
Scratcher
21 posts
How can i make a floor that my Sprite wont go below?
HINT:
set y to (how high...)
- Hetvlot
-
Scratcher
20 posts
How can i make a floor that my Sprite wont go below?
if the ground is red, then use this velocity script:
when green flag clicked
[]
set [ velocity] to [0 ]
forever
if <touching color [#ff0000] ?> then
if <key [ spacebar] pressed?> then
set [ velocity] to [10]
change y by (velocity)
end
if <not <key [ spacebar] pressed?>> then
set [ velocity] to [ 0]
end
end
if <not <touching color [#ff0000] ?>> then
change [ velocity] by (-1)
change y by (velocity)
end
end
- Sollybunny
-
Scratcher
16 posts
How can i make a floor that my Sprite wont go below?
when [space] key pressed
change y by (10)
wait (1) secs
change y by (-10)
- Sollybunny
-
Scratcher
16 posts
How can i make a floor that my Sprite wont go below?
when green flag clicked
stop all sounds
say [uhh whats happning...] for (2) secs
- djpro
-
Scratcher
6 posts
How can i make a floor that my Sprite wont go below?
Check this out: http://scratch.mit.edu/projects/34429446/
- Sollybunny
-
Scratcher
16 posts
How can i make a floor that my Sprite wont go below?
Check this out: http://scratch.mit.edu/projects/34429446/oh you want just don't go under it ok
when green flag clicked
forever
if <touching color [#ff0088] ?> then
change y by (0.50)
end
end
Last edited by Sollybunny (Feb. 18, 2015 13:31:24)
- doodlebob2
-
Scratcher
100+ posts
How can i make a floor that my Sprite wont go below?
Look at the how to make a platformer featured project that should help
- Sollybunny
-
Scratcher
16 posts
How can i make a floor that my Sprite wont go below?
Look at the how to make a platformer featured project that should help
d
when green flag clicked
foscratchblocks]
forever
if <<[username] = [ <[doodlebob2] = [ ]>
clear
e
clear
- Rlucy
-
Scratcher
58 posts
How can i make a floor that my Sprite wont go below?
I need help too! My sprite keeps going inside the ground too!!! It's so annoying!! 

- Rlucy
-
Scratcher
58 posts
How can i make a floor that my Sprite wont go below?
I need help too! My sprite keeps going inside the ground too!!! It's so annoying!!And also, these other scripts don't work because then I'm floating above ground! (No offense please)
- oa_champ
-
Scratcher
11 posts
How can i make a floor that my Sprite wont go below?
Have aSince when was there a red block?if <><not <touching [ v]?>> then
move () steps
end
- BPSHAL10
-
Scratcher
20 posts
How can i make a floor that my Sprite wont go below?
Link to my game, same problem.https://scratch.mit.edu/projects/71056232/#editor
- William1202
-
New Scratcher
1 post
How can i make a floor that my Sprite wont go below?
Please help me make a ground that the sprite wont go below.Look inside my project: http://scratch.mit.edu/projects/34557680/
The cube doesn't go through the floor.
I hope this helps.
Oh yeah, this makes the sprite not go through the floor, not a floor that the sprite doesn't go through, but I still hope it helps!
share your project
- deck26
-
Scratcher
1000+ posts
How can i make a floor that my Sprite wont go below?
That post was from December last year - please don't necropost.Please help me make a ground that the sprite wont go below.Look inside my project: http://scratch.mit.edu/projects/34557680/
The cube doesn't go through the floor.
I hope this helps.
Oh yeah, this makes the sprite not go through the floor, not a floor that the sprite doesn't go through, but I still hope it helps!
share your project
- _hinata_
-
Scratcher
1 post
How can i make a floor that my Sprite wont go below?
foreverHope this helps
if <touching [ground sprite v]?> then
repeat (5)
change y by (1)
end
end
end[/quote
it didnt work
- magicturtle1
-
Scratcher
16 posts
How can i make a floor that my Sprite wont go below?
when green flag clickedthat would work for a wall
forever
if <key [Left Arrow] pressed?> then
change x by (-10)
if <touching [Wall] ?> then
change x by (10)
end
end
end
when green flag clicked
forever
if <touching [Ground] ?> then
change y by (0)
if <not <touching [Ground] ?>> then
change y by (-5)
end
end
end
end
end
Last edited by magicturtle1 (Jan. 29, 2016 06:16:58)
- Discussion Forums
- » Help with Scripts
-
» How can i make a floor that my Sprite wont go below?
















[/quote

