Discuss Scratch

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
MMHMMH
Scratcher
100+ posts

How can i make a floor that my Sprite wont go below?

This project might help!
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?

Sollybunny
Scratcher
16 posts

How can i make a floor that my Sprite wont go below?

djpro wrote:

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?

doodlebob2 wrote:

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?

Rlucy wrote:

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?

JAWB86 wrote:

Have a
if <><not <touching [ v]?>> then
move () steps

end
Since when was there a red block?
BPSHAL10
Scratcher
20 posts

How can i make a floor that my Sprite wont go below?

William1202
New Scratcher
1 post

How can i make a floor that my Sprite wont go below?

bubble2002 wrote:

CaptainMarblez wrote:

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?

William1202 wrote:

bubble2002 wrote:

CaptainMarblez wrote:

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
That post was from December last year - please don't necropost.
_hinata_
Scratcher
1 post

How can i make a floor that my Sprite wont go below?

blackbelt321 wrote:

forever

if <touching [ground sprite v]?> then
repeat (5)
change y by (1)

end

end
end
Hope this helps [/quote

it didnt work
Johnniesushi
New Scratcher
1 post

How can i make a floor that my Sprite wont go below?

hello
magicturtle1
Scratcher
16 posts

How can i make a floor that my Sprite wont go below?

when green flag clicked
forever
if <key [Left Arrow] pressed?> then

change x by (-10)
if <touching [Wall] ?> then
change x by (10)

end

end
end
that would work for a wall

    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)

Powered by DjangoBB