Jump to content

Angle to pointer and Anchor to sprite


GivoNeedsHelp
 Share

Recommended Posts

Hello!

 

I'm trying to make a game like raze (flash game from 2010~ish) and I currently have a level import system and moving animated sprite.  I am using matter.js for the physics.  I am also using phaser 3 v3.12 as tiled hit detection(? idk how to say) breaks in the the newer versions.  I saw the demo for angle to pointer (http://phaser.io/examples/v2/arcade-physics/angle-to-pointer#gv) and wondered if something like it existed in Phaser 3.  and also, it would be great if i could anchor a sprite onto another moving one (the weapon on the player) as then it would work, but idk how to do it as I couldn't find anything for phaser 3.

 

Thanks for your help, I might not respond right away!

 

AND here is my project link(so i can work on it on the multiple different computers that I have): https://codesandbox.io/s/k0mq2lj533

 

~~~~technically I'm copying the code from the "making modular game worlds in phaser 3 part 5" demo, but this is how I get started on projects as I'm not good at setting things up! ;)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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