• Content count

  • Joined

  • Last visited

  1. Example of rts space game This messy thing, but I hope it works for something. Greetings
  2. Example of rts space game

    To move the units as a group, I based myself on examples and information that I found on the network. A grid is created with enough spaces for all the units that you want to move, making each unit choose an empty space in the grid. Thank you.
  3. Example of rts space game

    Yes, it is something that I have to correct, but it should not be a problem to load the page. Thank you.
  4. Example of rts space game

    Small project of a space strategy game (phaser-2.6.2): Graphics by
  5. How to stop moveTo

    no tween update: var dist=game.physics.arcade.distanceToXY(player, playerPos.x , playerPos.y); if ( (Math.round(dist)>=-1 && Math.round(dist)<=1) || playerMoving == false) { player.body.velocity.x=0; player.body.velocity.y=0; playerMoving = false; } else{ game.physics.arcade.moveToXY(player, playerPos.x , playerPos.y, 150); }