im making a scrolling game but i dont know how to mke an enemy die if you jump on it pleeease help
Offline
im accepting all answers even if you dont know how ill still try your idea
Offline
You could try this (I don't know if it works). Draw a colour on the top of the sprite using the paint editor that is nowhere else on the sprite. Then put this script in the player sprite. You'll need a different colour for every enemy sprite.
<when green flag clicked>
<forever>
<if><touching color[ colour ]
<broadcast[ kill enemy 1 ]
<end>
<end>
Then, in the enemy sprite:
<when I receive[ kill enemy 1 ]
<hide>
Remember to use different colours for the top of each enemy sprite. Also, you'll need one broadcast for every enemy.
Offline
You could try these options.
Make a color for the player sprite for his bottom stuff like shoes, a different color than the rest.
Enemy sprite:
When Flag clicked
forever
if touching color (player sprite shoes color)
hide
(but you wanna put show at the beginning for him to show!)
The second option:
make a variable called lets say shoehit
hide it
When flag clicked (player sprite do this)
set shoehit to 0
Enemysprite
When flag clicked if touching sprite 1
change shoehit by 1
When flag clicked
forever
if shoehit equals 1
hide OR
repeat 10
change ghost effect by -10 (but you would have to do clear graphic effects at the beginning.)
Hope it helped!
Offline
Thanks!!! But I'm probably gonna go with Dinoclor's suggestion cuz I don't want shoes on my character but thanks TheScratch3
Offline
rojasscratches wrote:
Thanks!!! But I'm probably gonna go with Dinoclor's suggestion cuz I don't want shoes on my character but thanks TheScratch3
![]()
Well you don't need shoes you can just make a little tiny dot of a different color on the player sprite.
Offline
Shin23 wrote:
rojasscratches wrote:
Thanks!!! But I'm probably gonna go with Dinoclor's suggestion cuz I don't want shoes on my character but thanks TheScratch3
![]()
Well you don't need shoes you can just make a little tiny dot of a different color on the player sprite.
Well, that was what I was referring to. Welcome rojscratches.
Offline