I tested it (I don't know why :) ), and if I said spin() and right(), the character will always be stuck at the right side of the world. I give you this tip:
Instead of this code for right:
[code]public void right()
{
setLocation(getX() + 5, getY());
}[/code]
use this:
[code]public void right()
{
move(5);
}[/code]
And do this for left():
[code]
public void right()
{
move(-5);
}[/code]
I hope this helps.
If you want, you can checkout my scenario Libary, which is basically a scenario with some great APIs. You can use that in this scenario if you want so.
2012/4/25
Crab in night
2012/4/25
DisappearMouse
2012/4/25
Preview of Sketchbook Adventures
2012/4/25
Realistic Balls
2012/4/24
fish aquarium
2012/4/24
DRH'sNewbiestartup
2012/4/24
Mario game
2012/4/21
walking men
2012/4/19
Bounce