Discuss Scratch

codderuzzu
Scratcher
33 posts

Launching a sprite

I want to know how to launch a sprite in a direction. Not just a sprite moving but also falling to the ground after sometime.

define Scratch
hours of head scratching
get it!
moob10293
Scratcher
42 posts

Launching a sprite

you could make the x and y values separate. first, you could get a jumping script, such as
repeat (10)
change y by (5)
end
repeat (10)
change y by (-5)
end
then, you could make it run a sideways script at the same time such as
forever
if <not <touching [ground] ?>> then
change x by (5)
end
end
using two different when flag pressed scripts

this is a signiture
nothing to see here
codderuzzu
Scratcher
33 posts

Launching a sprite

Thanks!

define Scratch
hours of head scratching
get it!

Powered by DjangoBB