Is my PC just acting weird or something? I'm using a menu system with a couple of different gosubs and return commands, but they don't overlap(to my knowledge). I have the code set up as...
do
if var#=1 then gosub section1
if var#=2 then gosub section2
loop
section1:
delete old images if existant
load sec1 images
do
if mouseclick()=1 then var#=2:return
sync
loop
section2:
delete old images
load sec2 images
do
if mouseclick()=1 then var#=1:return
sync
loop
Is there anything wrong with laying out my code like that? I've found that if I remove the "var#=1:return" parts of section2, the code will work( say if I have the mouseclick scale an image instead), but I really don't know what's going on. It used to say that I was having memory problems, but now it just closes Dark Basic on me.
I will try restarting my computer, but that takes a while, and I've been having trouble with my menu system a ton so far, so I thought it would be worth my time to check in here anyways. And yes, that's a very simplified version of what I've got for my code.
Pineapple juice, the best drink ever made.