SMBX2 characters help?
Posted: Tue Oct 15, 2024 2:38 pm
I wanted to make a metroid game with Samus only, But i have no idea how to make samus the only playable character in the episode. Can anyone help? 

Code: Select all
player:transform(16)
Doing "player:transform(16)" is better.
Oh wow, I've been using Player.character=16 forever, and honestly didn't know this was possible with characters. Thank you so much!Marioman2007 wrote: ↑Tue May 06, 2025 10:04 amDoing "player:transform(16)" is better.
what's the difference?
- setting character will directly change the character, so like if the player is fire mario, it'll change to fire samus
- using tranform will keep the corresponding powerup, if the player is fire mario and samaus was previously super samus, it'll change to super samus instead of fire samus
This is important for scripts which keep track of per-character data, one such example is customPowerups.