I was wondering if an entirely new power-up can be made for my mappack (if not made already in general):
A blue mushroom that greatly enhances your running speed and air movement.
Please and thank you!
[REQUEST] Quick Shroom
- Mari0Maker
- Posts: 1348
- Joined: 07 Apr 2012, 17:10
- Contact:
And if you could, just post the code (or at least say what lines you edited).
If you didn't know, I'm helping this person make a map.
If you didn't know, I'm helping this person make a map.
- Sunset_Moth
- Posts: 781
- Joined: 02 Sep 2012, 23:22
- Contact:
Hm... sounds interesting. If you don't know Lua and Love2D then you probbably won't be able to do this.
Sounds fairly simple, though, just something along the lines of
No, this code is not actually going to work. Not in Lua at least. Other languages it might work in, if you defined the variables first. Perhaps.
Sounds fairly simple, though, just something along the lines of
Code: Select all
if powerup==bluemushroom then
mariowalkspeed=basewalkspeed + 10
else
mariowalkspeed=basewalkspeed
end
- Mr.Q.Marx?
- Posts: 849
- Joined: 15 May 2012, 18:35
Could just link into the orange gel code?bubba_nate wrote:Hm... sounds interesting. If you don't know Lua and Love2D then you probbably won't be able to do this.
Sounds fairly simple, though, just something along the lines of
No, this code is not actually going to work. Not in Lua at least. Other languages it might work in, if you defined the variables first. Perhaps.Code: Select all
if powerup==bluemushroom then mariowalkspeed=basewalkspeed + 10 else mariowalkspeed=basewalkspeed end
Code: Select all
if fastmario then
maxrunspeed = gelmaxrunspeed
maxwalkspeed = gelmaxwalkspeed
runacceleration = gelrunacceleration
walkacceleration = gelwalkacceleration
end
- BobTheLawyer
- Posts: 2232
- Joined: 01 May 2012, 21:00
I really don't see what is wrong with that if you make bluemushroom a string (or define the var as a string) and use self.variables for a bunch of things. It doesn't look totally "Lua incompatible"bubba_nate wrote:No, this code is not actually going to work. Not in Lua at least. Other languages it might work in, if you defined the variables first. Perhaps.Code: Select all
if powerup==bluemushroom then mariowalkspeed=basewalkspeed + 10 else mariowalkspeed=basewalkspeed end