Well. I was following the guide for a simple 2D shooter, and I've been having issues with the gosub command. Lets take a snipit:
if inkey$()="z" and pf=0 then gosub shoot:pf=1
shoot:
sprite 2,lx,ly,4
PLAY SOUND 1
return
Now, whenever I do anything like this, it seems to just crash my game on startup. I've tried plugging in multitudes of different commands into the sub, though nothing works. (Leaving it blank also crashes.)
I'm currently running Vista 32bit, and I do have admin permission & compatibility for Windows XP on both the editor, and the exe. (Using Dark Basic Pro.)
Any help? :/