berna

Members
  • Content count

    4
  • Joined

  • Last visited

  1. 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.
  2. 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.
  3. Example of rts space game

    Small project of a space strategy game (phaser-2.6.2): http://xanela.hol.es/rts/ Graphics by http://millionthvector.blogspot.com.es/p/free-sprites.html
  4. 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); }