For 3 and 4 instead of INPUT FILES, put LOAD". If you don't want to see the text at the bottom thats varifies that you want to load a project, then put ,0 at the end.
If you want something like your second line (press any button) then do If B>=0 then goto @sample
When you press a button it puts in a code. Up is 1 down is 2 left is 4 and so on.
And make sure in the beginning you put B=BUTTON().
How am I going to make it to where only if the blocks touch it gosubs @tag? When they have the same X coordinate or the same Y coordinate they tag, even though they don't touch.
You should get it. Here is a simple program you can do!
ACLS
X=150:Y=80
SPSET 0,32,304
SPSCALE 0,3,3
SPANIM 0,"UV",5,32,304,5,48,304,0
BGFILL 0,0,0,50,50,&H027F
@MAIN
SPOFS 0,X,Y,-10
B=BUTTON()
IF B AND #RIGHT THEN X=X+1
IF B AND #LEFT THEN X=X-1
IF B AND #UP THEN Y=Y-1
IF B AND #DOWN THEN Y=Y+1