This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-12-20 23:11:06

Nandito104
New Scratcher
Registered: 2012-12-20
Posts: 2

Need to make a sprite jump on another sprite

Ok so I've been making a Mario Bros. like game but with different characters,stages and that stuff but I have a problem, I don't know how to make the character Sprite "kill" another Sprite by only jumping on top of it (not just by touching it). So does anyone know how to do this???

PS. I'm new to Scratch

Offline

 

#2 2012-12-21 17:18:07

Ideas
Scratcher
Registered: 2012-10-07
Posts: 100+

Re: Need to make a sprite jump on another sprite

Hi, welcome to scratch , remember to have fun. Ok, anyway, add the following script to the sprite you want to be "killed":

when gf clicked
forever
if << ((y position) of [hero v]) > ((y position)+[3]) >>// the name hero can be changed
if < touching [hero v]? >
show
broadcast [die script v]//replace this with death script eg ghost effect
hide
end
Hope this helps.


http://img685.imageshack.us/img685/2010/screenshot20121110at132.pngI think that you must CLICK above

Offline

 

#3 2012-12-22 09:55:15

mathfreak231
Scratcher
Registered: 2012-10-24
Posts: 80

Re: Need to make a sprite jump on another sprite

Ideas wrote:

Hi, welcome to scratch , remember to have fun. Ok, anyway, add the following script to the sprite you want to be "killed":

when gf clicked
forever
if < ([y position v] of [hero v]) > ((y position)+[3]) >// the name hero can be changed
if < touching [hero v]? >
show
broadcast [die script v]//replace this with death script eg ghost effect
hide
end
Hope this helps.

Fixed somewhat...

I agree...This should work, I think.


~This sig is false~
I'm on teh wiki!

Offline

 

Board footer