change npcs back and forth?

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

_SleepyWhirl_
Bob-Omb
Bob-Omb
Posts: 23
Joined: Thu Aug 19, 2021 9:52 pm
Flair: Discord: SleepyWhirl#6093
Pronouns: he/him
Contact:

change npcs back and forth?

Postby _SleepyWhirl_ » Thu Dec 30, 2021 4:48 am

hello! i wanted to ask if its possible with lua or somethin to change npcs to switch in serten scenarios?
lets say mario collects a star, and during the time the star is active the enemies change from one kind of npc with their own stats to a different kind of npc with different stats, and then once the star has lost its effect they change back to their first state, is that somewhat possible?

deice
Rocky Wrench
Rocky Wrench
Posts: 639
Joined: Fri Jul 23, 2021 7:35 am

Re: change npcs back and forth?

Postby deice » Thu Dec 30, 2021 7:25 am

while i haven't done extensive testing into what parameters it maintains, i recommend trying the transform() instance method, read more about it here.


Return to “Help and Support”

Who is online

Users browsing this forum: enzi and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari