Hello.
I am working on a game project, and for some reason, when I try to add a background, the background shows up when I try to shoot bullets at the enemy. Is there a way I can add a background so the game plays normally, and I don't have to get rid of my current code and start over?
Adding background to shooter game
-
- Party member
- Posts: 548
- Joined: Wed Oct 05, 2016 11:53 am
Re: Adding background to shooter game
Löve draws things in the order that you tell it to draw things in. If your code draws the background only if when a bullet is active, that's how it will draw it. Presumably you want the background to go under everything else, in which case the best place to put it is at the start of your love.draw function.
If in doubt, post your code.
If in doubt, post your code.
Last edited by MrFariator on Tue Apr 25, 2023 10:25 pm, edited 1 time in total.
- BrotSagtMist
- Party member
- Posts: 657
- Joined: Fri Aug 06, 2021 10:30 pm
Re: Adding background to shooter game
You need to actually show us whats going on, either in a screenshot or with code or else no one has an idea whats this about.
obey
Re: Adding background to shooter game
Also please use the support forum for this kind of questions.
My boat driving game demo: https://dusoft.itch.io/captain-bradley- ... itius-demo
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 11 guests