Language…
20 users online: Anas, anonimzwx, autisticsceptile1993, Batata Douce, Blizzard Buffalo, codfish1002, cozyduck, Foxy_9000_, Fozymandias, Housemeister, japexican007, Mario's GameBase, Maw, NewPointless, playagmes169, ppp9q,  shovda, sinseiga, temsuper1,  YouFailMe - Guests: 244 - Bots: 362
Users: 64,795 (2,376 active)
Latest user: mathew

Custom Block Help

Alright, down to business.

LDA #$07
STA $71
RTL


I figured that code would alone make Mario jump forward and very high by itself, but the screen goes black when Mario touches the block!
I have this same problem with submitted code too!
I really need help.

Oh, and it just plays the animation for Mario coming out of a diagonal pipe.
all hail vipes
Have you ever seen a custom block? You're missing a lot.

Also, what use would this have? It shoots you like a diagonal pipe would. You have to include the commands that indicates it's a custom block. If you don't it'll crash. These commands include:

JMP MarioBelow : JMP MarioAbove : JMP MarioSide : JMP SpriteV : JMP SpriteH : JMP MarioCape : JMP MarioFireBall

MarioAbove:
MarioBelow:
MarioSide:
SpriteV:
SpriteH:
MarioCape:
MarioFireBall:

You need all those. You don't have to set the code for each one of them individually, though. You can just stick the code at the end. (Er... At least, I'm pretty sure you can.)
Well, i looked at them, and i figured that i didn't need them.
I guess i'm stupid that way.
I'll try it.
all hail vipes
As Molten said you are missing the JMPs but I'd also like to add that there are 3 more that Molten didn't put including; JMP Corners : JMP HeadInside : JMP BodyInside

These new JMPs also need the command db $42 to actually work and without db $42 I do recall the block will break if those JMPs are in there.

Here is a very simple base block that all it does is make itself act solid no matter what.

Originally posted by CODE
db $42

JMP MarioBelow : JMP MarioAbove : JMP MarioSide : JMP SpriteV : JMP SpriteH : JMP CapeSpin : JMP FireBall
JMP Corners : JMP HeadInside : JMP BodyInside

MarioAbove:
MarioBelow:
MarioSide:
SpriteV:
SpriteH:
CapeSpin:
FireBall:
Corners:
HeadInside:
BodyInside:
LDY #$01
LDA #$30 ;act like tile 130
STA $1693
RTL


But as molten also said this block can be condensed and all JMPs could have the same name it make it shorter so it could be writen like this.

Originally posted by Code Again
db $42

JMP Code : JMP Code : JMP Code : JMP Code : JMP Code : JMP Code : JMP Code
JMP Code : JMP Code : JMP Code

Code:
LDY #$01
LDA #$30 ;act like tile 130
STA $1693
RTL