The code in the attached screen shot may help. It sets up an animated sprite, then moves it around using values from STICK as mentioned above. Sorry no space to add bounds checking in a single screen full of code.
I see maxy instead of maxy% on line 5. That would give you an undefined variable error. If that doesn't work try moving option strict up to line 1, and let me know if you get a different error message.