Page 1 of 1

Is there a way to (Officially) create "Custom Powerups" in 1.4.3 or in 2.0?

Posted: Sat Oct 08, 2016 12:05 pm
by sannu42
I'm working on a project, and i'd like to know if theres a way to create Custom Powerups in 1.4.3 or 2.0 of SMBX. Like, for example, the new powerup allows you to shoot a beam, sort of like the Link powerup that allows you to do that, and it can be used for other characters too. I have an idea for a powerup , and i havean't found anything relating to "Custom powerups" in SMBX. I hope you answer my question,

Re: Is there a way to (Officially) create "Custom Powerups" in 1.4.3 or in 2.0?

Posted: Sat Oct 08, 2016 1:03 pm
by PixelPest
I don't know what you mean by officially, but it's possible. For 2.0, you'd have to code it through LunaLua. At this point, it would be easiest to code it over another power-up (get rid of all of the effects of the original power-up and work with that player state) or the much more difficult way (it is possible though) is to code a power-up that uses a current power-up state without overwriting the current effects. (I tried to do that at one point for the Blue Shell, but it was pretty tough.) At some point, 2.0's power-up array will be extended and have many more power-ups. You could also try overwriting the 8th power-up state which is a weird, glitchy placeholder. In terms of 1.4, I don't use it but I would assume you can overwrite a state, however it's code editor is much more limited so I'm not sure you could add another power-up without overwriting one

Re: Is there a way to (Officially) create "Custom Powerups" in 1.4.3 or in 2.0?

Posted: Sun Oct 09, 2016 6:28 am
by sannu42
PixelPest wrote:I don't know what you mean by officially, but it's possible. For 2.0, you'd have to code it through LunaLua. At this point, it would be easiest to code it over another power-up (get rid of all of the effects of the original power-up and work with that player state) or the much more difficult way (it is possible though) is to code a power-up that uses a current power-up state without overwriting the current effects. (I tried to do that at one point for the Blue Shell, but it was pretty tough.) At some point, 2.0's power-up array will be extended and have many more power-ups. You could also try overwriting the 8th power-up state which is a weird, glitchy placeholder. In terms of 1.4, I don't use it but I would assume you can overwrite a state, however it's code editor is much more limited so I'm not sure you could add another power-up without overwriting one
Interesting, i'll have to look up a tutorial on that. :)

Re: Is there a way to (Officially) create "Custom Powerups" in 1.4.3 or in 2.0?

Posted: Sun Oct 09, 2016 12:33 pm
by timocomsmbx2345
well i wish that's possible

Re: Is there a way to (Officially) create "Custom Powerups" in 1.4.3 or in 2.0?

Posted: Mon Oct 10, 2016 8:35 pm
by PixelPest
timocomsmbx2345 wrote:well i wish that's possible
I just said that it was...

Re: Is there a way to (Officially) create "Custom Powerups" in 1.4.3 or in 2.0?

Posted: Wed Oct 12, 2016 4:19 pm
by lighthouse64
PixelPest wrote:
timocomsmbx2345 wrote:well i wish that's possible
I just said that it was...
Yeah, it's possible through lunalua.

Re: Is there a way to (Officially) create "Custom Powerups" in 1.4.3 or in 2.0?

Posted: Fri Oct 14, 2016 10:39 am
by timocomsmbx2345
PixelPest wrote:
timocomsmbx2345 wrote:well i wish that's possible
I just said that it was...
So you have to copy & paste any npc code that's not in PGE & replace a dummy npc with that power-up?
Or you have to write the codes by yourself?

Re: Is there a way to (Officially) create "Custom Powerups" in 1.4.3 or in 2.0?

Posted: Sun Sep 24, 2017 8:41 am
by TheNoobGoomba
PixelPest wrote:I don't know what you mean by officially, but it's possible. For 2.0, you'd have to code it through LunaLua. At this point, it would be easiest to code it over another power-up (get rid of all of the effects of the original power-up and work with that player state) or the much more difficult way (it is possible though) is to code a power-up that uses a current power-up state without overwriting the current effects. (I tried to do that at one point for the Blue Shell, but it was pretty tough.) At some point, 2.0's power-up array will be extended and have many more power-ups. You could also try overwriting the 8th power-up state which is a weird, glitchy placeholder. In terms of 1.4, I don't use it but I would assume you can overwrite a state, however it's code editor is much more limited so I'm not sure you could add another power-up without overwriting one
well that stinks since i dont really know how to code unless there is a special software that helps you code it

Re: Is there a way to (Officially) create "Custom Powerups" in 1.4.3 or in 2.0?

Posted: Sun Sep 24, 2017 8:58 am
by PixelPest
You can learn LunaLua; it isn't too difficult and allows you to do amazing stuff. There's really no way around it though