[REQUEST] Quick Shroom

Mods, guides how to use and install mods go right in here.
Post Reply
User avatar
Kai
Posts: 4
Joined: 03 Jul 2013, 10:26

Post » 20 Oct 2013, 04:46

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!

User avatar
Mari0Maker
Posts: 1348
Joined: 07 Apr 2012, 17:10
Contact:

Post » 20 Oct 2013, 04:57

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.

User avatar
Sunset_Moth
Posts: 781
Joined: 02 Sep 2012, 23:22
Contact:

Post » 08 Jan 2014, 18:13

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

Code: Select all

if powerup==bluemushroom then
mariowalkspeed=basewalkspeed + 10
else
mariowalkspeed=basewalkspeed
end
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.

User avatar
Mr.Q.Marx?
Posts: 849
Joined: 15 May 2012, 18:35

Post » 08 Jan 2014, 20:46

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

Code: Select all

if powerup==bluemushroom then
mariowalkspeed=basewalkspeed + 10
else
mariowalkspeed=basewalkspeed
end
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.
Could just link into the orange gel code?

Code: Select all

if fastmario then
	maxrunspeed = gelmaxrunspeed
	maxwalkspeed = gelmaxwalkspeed
	runacceleration = gelrunacceleration
	walkacceleration = gelwalkacceleration
end

User avatar
BobTheLawyer
Posts: 2232
Joined: 01 May 2012, 21:00

Post » 08 Jan 2014, 21:38

bubba_nate wrote:

Code: Select all

if powerup==bluemushroom then
mariowalkspeed=basewalkspeed + 10
else
mariowalkspeed=basewalkspeed
end
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.
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"

Post Reply