Bullets spawning but not on screen

I cant seem to fix this issue



Bullets are spawning but I can’t see them on screen, sorting layers are all fine .I can’t seem to fix the problem

Hi Trigodil,

Please note, it’s better to copy/paste your code and apply the code fencing characters, rather than using screenshots. Screenshots are ideal for displaying specific details from within a game engine editor or even error messages, but for code, they tend to be less readable, especially on mobile devices which can require extensive zooming and scrolling.

You also prevent those that may offer to help you the ability to copy/paste part of your code back to you with suggestions and/or corrections, meaning that they would need to type a potentially lengthy response. You will often find that people are more likely to respond to your questions if you make it as easy as possible for them to do so.

Since the bullets are obviously in your Hierarchy, select one of them, and check the scene window. If they are next to the player, it might be that they are behind the background image. Make sure the z-position of the background is set to >0, so it is farther away from the camera than the bullets.

Hope this helps. :slight_smile:


See also:

Thanks again, I really appreciate it :sweat_smile:

You’re welcome. :slight_smile:

Privacy & Terms