Jump to content

Move Sprite to Mouse Position but don't rotate


mischka
 Share

Recommended Posts

Hey,

so with

spaceship.rotation = game.physics.arcade.moveToPointer(spaceship, 60, game.input.activePointer, 500);

my object (a spaceship) will move towards my mouse position and rotate towards it.

But i don't want to rotate to the mouseposition. I want to rotate the spaceshop to a specific point for example the middle of the screen.

So how can i achieve that without writing my own function. I did not found anything in the documentary that could help me. Everything is rotating to the x,y coordinates.

 

Would be glad for some help.

 

Greetings

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...