Originally posted by Runic_RainOriginally posted by ninjName: Pink triangle... fix?
Type: Patch
Description: A patch that makes so you can use the pink triangle on any (solid) block without using tile 1EB.
That's "not possible" with SMW as-is. Really it's not. The best way if you *were* actually to do it would be to have a hijack do a pre-check before block collision with feet collision shifted up 1px (basically always apply a slope-assist by default) and if the map16 you lookup isn't a triangle shift the position back to normal. But that's so much extra processing. Just stick a slope assist where it's needed. I know it's annoying, but that's really better than making smw pretend there's a slope-assist under everything. (Given that, nobody's probably going to touch this request unless you can point out a use-case other than convenience).
Out of curiosity, I toyed around the idea of making a block that does this. Didn't get far, or really try as you mentioned it's a bit redundant, but I made this small block code:
Codedb $42
JMP MarioBelow : JMP MarioAbove : JMP MarioSide
JMP SpriteV : JMP SpriteH : JMP MarioCape : JMP MarioFireball
JMP TopCorner : JMP BodyInside : JMP HeadInside
MarioSide:
BodyInside:
MarioBelow:
HeadInside:
REP #$20
LDX $96
DEX : DEX
STX $00
LDA $98
SEC
SBC $00
BMI +
REP #$20
DEC $96
+
SEP #$20
MarioAbove:
LDA $187A
BEQ +
REP #$20
DEC $96
SEP #$20
+
TopCorner:
SpriteV:
SpriteH:
MarioCape:
MarioFireball:
RTL
(has to act like a triangle in map16)
Lil funky when you stand towards the low end of the triangle, and Yoshi is still a bit jank. Maybe someone can expand on this to make it work like a purple triangle proper. It's a start at least.
===============================================
EDIT: Did a little more messing around, was able to get
these blocks to almost operate like purple triangles without the helper tile. There are a couple caveats, namely that they still need some sort of solid tile (doesn't matter which as long as it acts solid) underneath or Mario can fall through the thin side of the triangle, furthermore, Yoshi still refuses somewhat to get on top of the block, but if the player just runs into it it'll work more or less as intended (or at least the whole thing happens so fast they wont notice yoshi slightly clipping inside).
Hopefully someone to elaborate on this and make it less finnicky.