LunaDLL/LunaLua Request

General discussion about Super Mario Bros. X.

Moderator: Userbase Moderators

SamyPlaysSMBX
Tweeter
Tweeter
Posts: 139
Joined: Wed Jul 30, 2014 4:05 pm

LunaDLL/LunaLua Request

Postby SamyPlaysSMBX » Sun Apr 19, 2015 10:43 pm

I really dont know where this should go. But today I ask for someone to make turning into a stone statue impossible with LunaLua/LunaDLL. BTW: You turn into a stone statue with a tanooki suit.

Thats all for now! Stay... um..
Be Happy!

RudeGuy
Bowser
Bowser
Posts: 4994
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: LunaDLL/LunaLua Request

Postby RudeGuy » Mon Apr 20, 2015 8:35 am

What about just using the leaf and not the tanooki suit?

bossedit8
Banned
Posts: 6838
Joined: Fri Dec 20, 2013 12:35 pm
Contact:

Re: LunaDLL/LunaLua Request

Postby bossedit8 » Mon Apr 20, 2015 8:38 am

RudeGuy07 wrote:What about just using the leaf and not the tanooki suit?
Yes, you can basically just replace the Tanooki playable graphics into the Raccoon playable graphics so you don't actually have to code around just for that Little Change.

SamyPlaysSMBX
Tweeter
Tweeter
Posts: 139
Joined: Wed Jul 30, 2014 4:05 pm

Re: LunaDLL/LunaLua Request

Postby SamyPlaysSMBX » Mon Apr 20, 2015 5:30 pm

bossedit8 wrote:
RudeGuy07 wrote:What about just using the leaf and not the tanooki suit?
Yes, you can basically just replace the Tanooki playable graphics into the Raccoon playable graphics so you don't actually have to code around just for that Little Change.
RudeGuy07 wrote:What about just using the leaf and not the tanooki suit?
Um, no. The leaf is already taken as a powerup. I need the code or someway else to stop the stone statue.

RudeGuy
Bowser
Bowser
Posts: 4994
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: LunaDLL/LunaLua Request

Postby RudeGuy » Tue Apr 21, 2015 11:56 am

...And why do you need another power-up to do the same EXACT thing that does the leaf?!

Axiom
Phanto
Phanto
Posts: 1471
Joined: Tue Dec 24, 2013 2:23 pm

Re: LunaDLL/LunaLua Request

Postby Axiom » Tue Jul 21, 2015 10:38 am

idc if im bumping an old topic or not, but i was too curious as to how this could be implemented. this can also easily be extended to keep the player from controlling virtually anything.

Code: Select all

local player1 = Player();
local player2 = Player(2);

function onInputUpdate()
  if(player1.powerup == 5) and (player1.altRunKeyPressing) then
    player1.altRunKeyPressing = false;
  end
  if(player2 ~= nil) then
    if(player2.isValid) then
      if(player2.powerup == 5) and (player2.altRunKeyPressing) then
        player2.altRunKeyPressing = false;
      end
    end
  end
end
5 is the Tanooki suit's powerup index. I tested this in a lunadll.lua file but I'm sure it'll work fine in a lunaworld.lua file.


Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari