My player keeps going to the forest instead of the generator
It also stops running the code when I get to the generator
Where is this level 20 ches
It is in the first game development
Then I can’t help sorry
Please post your code formatted, along with a screenshot.
Danny
player = game.spawnPlayerXY(“champion”, 15, 35)
player.attackDamage = 600
player.maxSpeed = 8
game.addSurviveGoal()
game.addDefeatGoal()
game.spawnXY(“x-mark-stone”, 60, 35)
Spawn a “generator”
game.spawnXY(“generator”, 60, 35)
Spawn a “lightstone”
game.spawnXY(“lightstone”, 15, 35)
Now beat your game!
Could you format your code correctly as it says here?
Thanks.
And could you send a link to this level?
Lydia
player = game.spawnPlayerXY("champion". 15, 35)
player.attackDamage = 600
player.maxSpeed = 8
game.addSurviveGoal()
game.addDefeatGoal()
game.spawnXY("x-mark-zone")
# Spawn a "generator"
game.spawnXY(“generator”, 60, 35)
# Spawn a "lightstone"
game.spawnXY(“lightstone”, 15, 35)
# Now beat your game!
I’ve done it for you this time, but next time you gotta do it yourself.
Oh, and put 3 batsticks before, and after your code to format your code properly.
Your code is right. I think here you have to click “Play” , then click on light stone, then attack all enemies and generator by clicking on them. And then you’ll win the game!
Peter is correct. You’ve done all the required code goals. You’ll need to click play and survive.
It was just a glitch thanks
No problem! Congrats on solving it!