Page 1 of 1

How do I get an npc to be kicked by the player?

Posted: Wed Feb 24, 2021 8:15 pm
by Gabriel_2004
How do I get a custom npc to be kicked by the player like Stomped Galoomba? I would be grateful for any help

Re: How do I get an npc to be kicked by the player?

Posted: Fri Feb 26, 2021 9:31 am
by MrDoubleA
Check if the two are colliding (Colliders.collide(v,player)) and if so, set it's speedX and speedY.

Re: How do I get an npc to be kicked by the player?

Posted: Fri Feb 26, 2021 10:45 am
by Gabriel_2004
MrDoubleA wrote:
Fri Feb 26, 2021 9:31 am
Check if the two are colliding (Colliders.collide(v,player)) and if so, set it's speedX and speedY.
Ok, thanks again