Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2652

LunaLua Help • Re: Need help with lua? - LunaLua General Help

$
0
0
Is there a legit way to force move NPCs like the Mushroom, 1up, starman etc. ALWAYS to the right direction when they come out of a box/block (of course they are supposed to switch direction if bumped from below or if they reach a wall etc.). The SMB3 behaviour is actually a little bit problematic if you want to create levels in SMB1 style (without turning back etc.).
I found this here
https://docs.codehaus.moe/#/constants/direction

I checked the SML2 blocks and I'm not sure whether this can be integrated in any way.
local function SpawnNPC(v)
and NPC.spawn and "spawnDirection. The NPC's facing direction when spawning."
under Instance Fields.
https://docs.codehaus.moe/#/reference/npc
So, even if it would be something simple, but without an existing lua file for the old npc, how to replace existing behaviour?
Does somebody know?

Statistics: Posted by Just_Thomas — Wed Jan 17, 2024 10:17 am



Viewing all articles
Browse latest Browse all 2652

Trending Articles