how do you change npcs with lunalua?

This is the place for discussion and support for LunaLua and related modifications and libraries.

Moderator: Userbase Moderators

Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
PersonNamedUser
Reznor
Reznor
Posts: 2882
Joined: Fri Feb 27, 2015 8:07 pm

how do you change npcs with lunalua?

Postby PersonNamedUser » Sat Jun 17, 2017 7:34 pm

What i mean by this is like, how would you transform an npc? Like changing the npc a boss shoots or something like that?
Like Birdo actually shooting fire instead of changing the egg graphic? How are you supposed to do this?

The0x539
Eerie
Eerie
Posts: 751
Joined: Fri Jan 22, 2016 8:02 pm

Re: how do you change npcs with lunalua?

Postby The0x539 » Sat Jun 17, 2017 8:05 pm

Run NPC:transform(newID) or NPC.id = newID, depending on your needs, where NPC is an npc object.

Gaming-Dojo
Tweeter
Tweeter
Posts: 144
Joined: Mon Jan 25, 2016 9:20 am
Pronouns: he/him
Contact:

Re: how do you change npcs with lunalua?

Postby Gaming-Dojo » Tue Jun 20, 2017 5:53 am

NPC:transform(newID) is the better one to use bc it fixes the hight and width of the NPC as well as preventing other issues.I hope this advice Hoeloe gave me when I had troubles with a modification of a boomerang script that Tempes wrote helps you.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari