[SOLVED] Level hedge magic

Can any body help to check my codes as the hero “captain” can’t move
thank

Spawn a maze. Change the number for a different maze!

game.spawnMaze(“forest”, 1)
game.spawnMaze(“forest”, 3)

Spawn a hero with spawnPlayerXY(type, x, y)

game.spawnXY(“captain”, 36, 30)

Add at least one goal!

game.addCollectGoal()
game.spawnXY(“gem”, 45, 60)
game.addMoveGoalXY(51, 44)
game.addMoveGoalXY(60, 56)
game.addMoveGoalXY(45, 30)

2 Likes

You could remove this line

1 Like

Does it work now? (20 characters)

1 Like

still remain the same

1 Like

Can you show me a picture with your problem?

2 Likes

Or maybe try to spawn the hero with this

game.spawnPlayerXY("captain", 10, 10)

and put the move goals somewhere you can go.

2 Likes

1 Like

amend already, still no respond.

1 Like

And you click on the screen and nothing?

After you hit play? (20 chars)

click on the screen and never work…

hit play also never work…

1 Like

Huh, that is wierd. Can you help him, @Deadpool198?

1 Like

You have spawnXY as your code, not spawnPlayerXY. Fix that and all should be well.

1 Like

yes, the spawnxy should be spawnPlayer. the problem solved.
thank you Ansedra and dedreous.

2 Likes

Glad I could help! :wink:

1 Like

YAY you solved it(20 characters)

1 Like