Enjl wrote:Modifying speedX and speedY for NPCs only works if SMBX itself isn't changing the values in that tick.
You caaaaan however check for speedY > 0 and then subtract half of speedY from the y-position. Bit hacky but does the job.
pnpc is for storing values beyond those in vanilla smbx. Stuff like NPC.data.isCarnivore = true or whatever you need.
Ok, I'll see if I can manage to do that. It might be better to try something else, at least that is not the main gimmick of my level. Thanks.
By the way, is there some lunadll.lua document (like in a level or custom gfx) that you would recommend me to search for so I can watch more uses for pncp, as examples?