Page 1 of 1

how reduce speed requiriment to fly with racoon/tanooki?

Posted: Wed Apr 27, 2022 11:26 pm
by Comanchero
hello friends, i need to know how can reduce the time that the racoon/tanooki suit requires to be able to fly????? i have played super mario bros 3 episodes where i realized that when running, the "PBAR" never loads because i run in small spaces, while in the ORIGINAL SMB3 games i can do it!!!
how can i edit that? :shock:


Image

Re: how reduce speed requiriment to fly with racoon/tanooki?

Posted: Thu Apr 28, 2022 8:46 am
by deice
well, you could just make the room 3 blocks wider which would allow for flight:
Image

but if you absolutely must reduce the minimum running time for p-speed, it's impossible without using lunalua (assuming you're using smbx2). create a file called "luna.lua" inside your episode folder and place this inside:

Code: Select all

local requiredPSpeed = 10 --change this number to control how early you can take flight

local charMap = {
	[CHARACTER_MARIO] = 35,
	[CHARACTER_LUIGI] = 40,
	[CHARACTER_PEACH] = 80,
	[CHARACTER_TOAD] = 60,
	[CHARACTER_LINK] = 10
}

function onTick()
	for _, v in ipairs(Player.get()) do
		if(v:mem(0x168, FIELD_FLOAT) >= requiredPSpeed) then
			v:mem(0x168, FIELD_FLOAT, charMap[v.character] or 35)
		end
	end
end
this script lets you fly earlier than usual, change the number at the top to suit your needs (10 makes it so that you can fly in the room that you showcased in your screenshot)