Help with fps game shooting

sent wrong link had to repost.
I’m currently working on a fps game and I ran into a problem after shooting the bullet it disappears after it goes a small distance and won’t hit things that are farther away. Could somebody help me? Game: https://arcade.makecode.com/S63472-44533-66207-09997

1 Like

The bullet will also disappear randomly. Could someone pls help me?

1 Like

Yeah, this is an issue I struggled with when trying to do a same thing. What i found was that the “create projectile sprite” block actually creates a sprite with the “auto destroy” sprite flag already turned on.

And since this flag does not account for 3d render extension your bullet will disappear when it leaves the “traditional” screen. This is put in place to help nom-experienced coders with glitches but can trip up more experienced ones. Luckily, the flag isn’t locked on. You can just turn it off and this should fix your problem.


Also the “destroy on walls flag” is also auto-turned on. But since it’s a bullet I think you want to keep it that way.

1 Like

I’ve dealt with these problems multiple times are there is no way of fixing them. And bullets despawn when they are off the screen or a certain range away from the player, and from what I’m aware of there is no way of increasing this. Also bullets seem like they disappear randomly but when they are near walls they depsawn with wall hitboxes being slightly janky this happens.
I hope this clarified some stuff for you!

thank you will try that

1 Like