how reduce speed requiriment to fly with racoon/tanooki?

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

Comanchero
Goomba
Goomba
Posts: 3
Joined: Sat Mar 12, 2022 8:33 pm

how reduce speed requiriment to fly with racoon/tanooki?

Postby Comanchero » Wed Apr 27, 2022 11:26 pm

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

deice
Rocky Wrench
Rocky Wrench
Posts: 638
Joined: Fri Jul 23, 2021 7:35 am

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

Postby deice » Thu Apr 28, 2022 8:46 am

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)


Return to “Help and Support”

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari