Language…
8 users online: DinoMom, Firstnamebutt, masl, netyo, pnaha, qantuum,  Ringo, tOaO - Guests: 250 - Bots: 445
Users: 64,795 (2,378 active)
Latest user: mathew

Platforms [Solved]

I have a simple problem. Right now I have a platform that constantly runs JSL $01B44F to act like a solid platform. Even though that's running, though, whenever it runs this:
Code
    LDA #$10
    STA !AA,x
    JSL $01802A
    RTS

It doesn't let Mario walk on it; he's constantly falling and landing. I even tried to only run the solid platform code when it comes into contact with Mario but that isn't working. Is there something I'm doing wrong?
You mean a custom platform, don't you? Anyways. Does the platform interact with Mario the whole time or just every second frame? There is a setting in the CFG file where you can interact with sprites at every frame. After all, the hitbox is a bit costy with the performance and most sprites only interact each second frame and only a couple (like platform sprites) does that.
Yeah it's a custom platform. And I did set "process interaction with Mario every frame" along with putting JSL $01B44F before any other code. Is there anything else that might be going wrong?
Do you have the correct sprite clipping set up? If your sprite is 16x16 then it should be 0C and not 00.
Did you set the player's y position? Chances are is that when the platform moves downward, the player's y position sometimes don't follow, that's why Smw's hitbox extends upwards to stick mario with the platform.
Give thanks to RPG hacker for working on Asar.
Originally posted by TheBiob
Do you have the correct sprite clipping set up? If your sprite is 16x16 then it should be 0C and not 00.

My sprite actually was using sprite clipping 14, but after what you said I changed it to 0F and that did the trick. Thank you!

Thank you too GHB.