Page 1 of 1

LunaDLL - Force powerup?

Posted: Fri Oct 09, 2015 11:26 pm
by SMB3
Hey, I actually posted something on the forums!

Basically, I want to force the player (using Link) to constantly have a fire flower. I could probably do this by spawning fire flowers on them every frame, but that would probably be laggy and HORRIBLY obnoxious. No one wants to hear "DUNUNUNAAAA!!!" sixty times a second. More importantly, however, that would constantly refill the player's health. Since I want death to happen sometimes, that's bad. (If you feel insulted by my watered-down explanation, go read simple.wikipedia.org for a while...)
Is there some way I can basically tell LunaDLL to filter the player's state to fire flower, but in both directions?

Re: LunaDLL - Force powerup?

Posted: Sat Oct 10, 2015 1:55 am
by Suckerman7 GM
You can set your character to its fire flower form at level editor/test settings.

Re: LunaDLL - Force powerup?

Posted: Sat Oct 10, 2015 1:38 pm
by SMB3
...
Basically, I want to force the player (using Link) to constantly have a fire flower.
Also, this is unrelated to using the test function in the editor - it's supposed to happen in the actual level.

Edit: Bold text on this forum is wussy... (changed emphasis to italics)

Re: LunaDLL - Force powerup?

Posted: Sat Oct 10, 2015 1:58 pm
by Zipper
Editing the player's flags to constantly keep the fire flower on them is easy.

As for health, you can try to keep a separate custom variable that lowers down when you get hit(I don't know how to make that happen, haven't touched Luna in a while) and when that variable is dropped down do 0, just kill the player.

the video raocow posted today uses a similar gimmick, albeit without the forced powerup.

Re: LunaDLL - Force powerup?

Posted: Sat Oct 10, 2015 2:02 pm
by SMB3
Hmm. Ideally the health would be displayed (I wanted to use the HeartSystem in LunaDLL), but that might help.

Re: LunaDLL - Force powerup?

Posted: Sat Oct 10, 2015 7:49 pm
by Taker
If you want to do it the easier way, just sneak in some fire flower generators around. That's what I do since I suck at coding and lunalua and stuff. Also, this post officially uppered my rank by one. I'm not a weak swooper, now I'm a bit. A bit of you. Of your life. Ok, back on topic, Maybe if you got fireflowers spawning from every enemy you kill? I dunno if that's possible without or with lunalua. All I know to do is to attach layers.

Re: LunaDLL - Force powerup?

Posted: Sun Oct 11, 2015 5:04 pm
by Artemis008
Merio wrote:If you want to do it the easier way, just sneak in some fire flower generators around. That's what I do since I suck at coding and lunalua and stuff. Also, this post officially uppered my rank by one. I'm not a weak swooper, now I'm a bit. A bit of you. Of your life. Ok, back on topic, Maybe if you got fireflowers spawning from every enemy you kill? I dunno if that's possible without or with lunalua. All I know to do is to attach layers.
But then it would counntinuosly make the (DUN-DUN-DUN-DUUUN) Sound.

Re: LunaDLL - Force powerup?

Posted: Sun Oct 11, 2015 5:12 pm
by Taker
Maybe forcefully make the player install a sound pack that deletes the power up noise.

Re: LunaDLL - Force powerup?

Posted: Sun Oct 11, 2015 5:14 pm
by Mable
Merio wrote:Maybe forcefully make the player install a sound pack that deletes the power up noise.
Why would you want to force the player to do that just for this single thing.

Re: LunaDLL - Force powerup?

Posted: Sun Oct 11, 2015 5:27 pm
by Taker
Tinkerbell wrote:
Merio wrote:Maybe forcefully make the player install a sound pack that deletes the power up noise.
Why would you want to force the player to do that just for this single thing.

I don't know, don't ask me. Ask him.

Re: LunaDLL - Force powerup?

Posted: Sun Oct 11, 2015 5:30 pm
by RudeGuy
Merio wrote:If you want to do it the easier way, just sneak in some fire flower generators around.
This is not recommended unless you're able to find a way to make trial and error levels fun. Learning Lua is better than any suugestions you have said.

Re: LunaDLL - Force powerup?

Posted: Sun Oct 11, 2015 5:39 pm
by Artemis008
Merio wrote:Maybe forcefully make the player install a sound pack that deletes the power up noise.
You could use LUA and set it to only that level.