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!