Is this a bug or? Oasis - Desert Campaign


#1

Opened the level and this happened.

This does not effect the level, but is confusing. You can put in code and beat the level fine but the ‘Fix Your Code’ statement is like “Hm, what?”


#2

Hmm, that’s weird. Do you still see it? If so, I wonder if you can open the Chrome console and see if there are any more details in the JS error logs about what read-only property it was trying to assign, where?


#3

No, I do not see it anymore, I only saw it that day…


#4

i still have the same problem except it won’t go away


#5

it also won’t let me use the loop it doesn’t say there are any errors but the loop won’t work and i have the code in right

it’s really confusing D:


#6

Post your code or a screenshot here, so we can see the problem.


#7

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.

    pass
else:
    # Move to the right by adding 10 to your X coordinate.
    
    pass

it has no blue spot before the loop so the commands aren’t on the line and i try to make it work but the loop command won’t work at all (btw how do you take a screen shot?)


#8

it looks the same as the picture above


#9

i have a problem with desert can we start this argument in another thingamabob


#10

i mean desert combat


#11

please do not revive dead threads