#The background asset of my game makes enemy lasers not appear in my game

5 messages · Page 1 of 1 (latest)

shy smelt
#

Hi, I am novice to using Bevy and I made a simple ship game, I just added a background asset but after adding the background I can't see the lasers that shoot the enemies in my game, what am I doing wrong? I leave a video showing my problem in the game.

wild spire
#

@shy smelt are their z-coordinate above the background's z-coordinate?

shy smelt
#

I don't think I did, I just added this in my setup_system:

    commands.spawn(SpriteBundle {
        texture: asset_server.load(BACKGROUND_IMAGE),
        ..default()
    });
wild spire
#

That spawns it with a z-coordinate of 0
If the z-coordinate of the lasers is bellow (or equal to) that, they will (might) not show

shy smelt
#

was the z inside my enemy_fire_system, I solved it. 😅