Death circle after hitting

Hello, I have a game on nodejs + phaser + socketio. I realized the shooting of the ball (it shoots, and both clients have a bullet visible), but I cannot make the death of the ball (to prescribe it to the function, so that one client will bum and the other die) How much will it cost? Project is not mine
Death functions are also spelled out.

Suppose you sprite instance is simply called sprite so to kill it call sprite.kill(); or to destroy it just call sprite.destroy(); it is the same thing but has something to do with the Garbage Collector or somthing like the browser cache both will make the sprite disapear from the screen (canvas)

For more infos check

kill

destroy

1 Like

I can not do a check for a character on the server

I don’t get what you mean by “check for a character on the server”