help pls I'm stuck!
Root / Programming Questions / [.]
KomodoCreated:
spanim won't work if you are moving the charecters with button commands i have been using spofs and spchr and the wait command to do the animation of the charecter, but then i try making a main loop that goes through all the stuff thats going on like this
@main gosub@button gosub@enemy gosub@scorebtw i'm tring to make this as simple as possible because i'm helping a friend of mine and he is a begginer. but anways so i have the enemy move randomly while the charecter is doging them.
It sounds like maybe you need to adjust your main loop. You shouldn't need to use WAIT as it will halt the rest of the program for the designated time.
@MAIN GOSUB @BUTTON GOSUB @ENEMY ' don't use WAIT inside this function GOSUB @SCORE VSYNC ' use this instead of WAIT GOTO @MAINThe WAIT code you mentioned, should really be a VSYNC, and it should happen at the end of the main loop. If you are inserting WAIT commands in the code that evaluates each sprite, you'll be pausing everything else in your program.