Language…
21 users online: Adsila, Batata Douce, Blizzard Buffalo, David_Odie, Doopu, drkrdnk,  Eden_, Hammerer, LadiesMan217, LightAligns, LuigiTron, magianegra21, Maniek, masl, Maw, ppp9q,  Ringo, sinseiga, Sokobansolver, Sparx, The_Uber_Camper - Guests: 256 - Bots: 295
Users: 64,795 (2,376 active)
Latest user: mathew

GPS problems while inserting block with cursor sprite



I got this error while trying to insert this block that comes with this sprite.

https://www.smwcentral.net/?p=section&a=details&id=3461

My only guess is that somehow this old block has some code in it that conflicts with the newer routines that GPS has and thus error. But I have no idea on how to fix this.

Also this sprite is such a fail. Someone please fix how badly this thing handles.

Here I'll make a video of this sprite fail.

https://www.youtube.com/watch?v=QXM7knGcgLY&feature=youtu.be
The block lacks the required "db $42" at the top and several jumps. Add them and you should be fine.
Also, just to be sure GPS handles the level number as a complete 2-byte address, add a "0" right after the "$" so that we're sure this value is 16-bit.

In the end, your file should look like this:
Code
db $42

JMP MarioBelow : JMP MarioAbove : JMP MarioSide
JMP SpriteV : JMP SpriteH
JMP Cape : JMP Fireball
JMP MarioCorner : JMP MarioBody : JMP MarioHead

!LEVEL = $011F		;level dest
!PROPERTIES = $00	;See 7E:19B8 RAM map, minus the high bit
!BUTTON = $40 ; button to press.

MarioCorner: MarioBody: MarioHead:
MarioAbove: 
MarioSide: 
MarioBelow:
	LDA $16
	AND #!BUTTON
	BEQ SpriteV
[...]