I think I've experienced a memory leak. Unfortunately I don't have much information.
A program started running more slowly, and the only thing that fixed it was restarting my 3DS, not CLEAR or ACLS.
1: use SPCOL to enable collision detection:
SPCOL sprite_number
2: use SPHITSP to detect collision:
sprite_2 = SPHITSP(sprite_1)
-tells you what sprite_1 is touching
or
hit = SPHITSP(sprite_1,sprite_2)
-returns 1 if the sprites are touching, and 0 if they aren't
Basically, it tells you to turn 3D on so you can see what blocks are solid.
This isn't really necessary since their textures are slightly different, but it helps.
lol
someone asked for the key, so I gave them the key for an "unfinished" program where only the logo is done. I didn't know they would post it on miiverse!
Here's the actual code: DRE3NWAV
STICK OUT <x>,<y>
Stores the position of the circle pad in the specified variables.
Example:
SPSET 0,0
WHILE 1
STICK OUT SX,SY
X=X+SX:Y=Y+SY
SPOFS 0,X,Y
VSYNC 1
WEND
Well, Sprite collision is (relatively) simple:
SPHITSP(sprite1,sprite2)
or
sprite2=SPHITSP(sprite1[,minimum_sprite2,maximum_sprite2)
For background, you might have to check using
BGGET(layer,x,y)
What line gives the error?
BUTTON(0,1) might give an error if you are not connected to another system.
Also, instead of
@NMOV
...
GOTO @NMOV
do:
WHILE 1
...
WEND