Pseudo-dino wrote:If you want her to teleport, you'd probably make her layer disappear, move very quickly to the ending spot, and then reappear.
I just tested this; if Mother Brain is on a layer, and said layer disappears, Mother Brain's health will reset. If the layer disappears too frequently, the boss will be impossible to defeat.
If you want to make a teleporting boss, you'll need to make it a layer-based boss. Make one sprite swap that is the actual boss graphic, but make the kill-able NPC invisible. Next, make sure the events hide/reveal the hitbox NPC and the graphic NPC at the same time and move them at the same speed. If you want the boss to take more than one hit to kill, you will need to attach the first kill-able NPC to another one of that same NPC, as well as have invisible enemies and Toads in unreachable areas to trigger the corresponding teleportation events for the next hitbox NPC when the first one is killed (that way, said NPC isn't out of sync with the graphic NPC).
Probably the only example of a teleporting boss in SMBX would be the magician in Little Ruins, one of my levels. If you don't think I explained it well enough, go to this link and download the Little Samson based level, then carefully analyze the different layers and events and how they all work together.
http://www.smbxgame.com/forums/v ... f=34&t=824