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

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

Gabriel_2004
Cheep-Cheep
Cheep-Cheep
Posts: 10
Joined: Sat Feb 20, 2021 11:04 am
Pronouns: he/him

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

Postby Gabriel_2004 » Wed Feb 24, 2021 8:15 pm

How do I get a custom npc to be kicked by the player like Stomped Galoomba? I would be grateful for any help

MrDoubleA
Ripper II
Ripper II
Posts: 394
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?

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

Postby MrDoubleA » 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.

Gabriel_2004
Cheep-Cheep
Cheep-Cheep
Posts: 10
Joined: Sat Feb 20, 2021 11:04 am
Pronouns: he/him

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

Postby Gabriel_2004 » Fri Feb 26, 2021 10:45 am

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


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari