Game Developement 1, Level 14, Character not Moving

Game Development 1, Level 14
In this level, the character is not moving when I click it to a certain position. For all of the other levels, this worked fine.
I believe this is not a problem with my code, but here it is.

player = game.spawnXY("champion", 15, 35)
player.attackDamage = 190
player.maxSpeed = 10
player.health = 2000
game.addSurviveGoal()
game.addDefeatGoal()
game.spawnXY("x-mark-stone", 60, 35)
generator = game.spawnXY("generator", 39, 55)
game.spawnXY("lightstone", 24, 36)

I cannot attack either. HELP!

Hi @wyattbaek, welcome to the forum.
It took me a while to find it, but here’s the line causing the error:

What are you spawning? Is there are special spawn method for that type of thing?
Danny

@Deadpool198 No, when I try it with all of the other characters, it seems to not work either.

That’s not what I was suggesting. Theres a method called game.spawnHeroXY(), which is different to game.spawnXY().
Danny

@Deadpool198 Thank you so much! It finally worked! I was stuck on this level for days.

If anyone else is searching for an issue where character not moving when clicking (only turning), you might check to make sure the web address does not end in ?
If so, remove it, then play. Perhaps this was a fluke, but we saw two instances where this resolved the games being locked/stuck. Subsequently, the ? appearing did not cause issue, so not sure why/how this would be. Perhaps a refresh/load.

1 Like

This is interesting, and unlike #s, ? does seem to refresh the page since it gets sent to the server again. It might be the refresh, but then why would it behave any different? I would submit an issue on the issue tracker, and they would probably have more info as they help develop the game.