I usually organise my programmes as such: @MAINsetup (bgm and initialisation here) @MAINdraw (spu and if statements commands go here) goto @MAINcontrol @MAINcontrol ("if button()" commands go here) goto @MAINdraw