Hi folks !
I'm making a game with Phaser and I have some space ships.
My ships are firing bullets (thanks to http://gamemechanicexplorer.com/ Seriously, I love you man <3).
My map is 4800px in width and 2400px in height.
For now, the bullets are traveling all the map untill they find a side of the world.
What I would like to do is to set a range for my ships, something like 250px. So I think the solution is to kill my bullets after X pixels traveled (in my case X = 250). I'm thinking of calculate this distance traveled with the velocity at each frame but I'm no