GivoNeedsHelp Posted October 24, 2018 Share Posted October 24, 2018 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 More sharing options...
samme Posted October 24, 2018 Share Posted October 24, 2018 49 minutes ago, GivoNeedsHelp said: 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 http://labs.phaser.io/edit.html?src=src\physics\arcade\velocity from angle.js GivoNeedsHelp 1 Link to comment Share on other sites More sharing options...
GivoNeedsHelp Posted October 24, 2018 Author Share Posted October 24, 2018 i missed that one, thanks! and is there any way to make the weapon move with the player? anchoring doesn't work in phaser 3. Link to comment Share on other sites More sharing options...
samme Posted October 24, 2018 Share Posted October 24, 2018 Use a Container, or update the weapon's position manually. Link to comment Share on other sites More sharing options...
Recommended Posts