I can’t find the code for the level Oasis.
Can you help me? loop:
x = self.pos.x
y = self.pos.y
enemy = self.findNearestEnemy()
if enemy and self.distanceTo(enemy) < 10:
# Move to the left by subtracting 10 from your X coordinate.
x = x - 10
else:
# Move to the right by adding 10 to your X coordinate.
x = x + 10
self.moveXY(x, y)
Well, give us your code so that we can help you. We are not omniscient; we do not know what your problem is. Don’t forget to read the FAQ to learn how to format your code.