Godot Version
Godot 4
Question
I want to make different levels with different difficulties in my game without having to make a bunch of different scenes? Help is appreciated, thanks! Please reply with questions you need answered to help!
Godot 4
I want to make different levels with different difficulties in my game without having to make a bunch of different scenes? Help is appreciated, thanks! Please reply with questions you need answered to help!
This question is incredibly broad. What do you consider a “different difficulty”?
For a lot of games, a different difficulty simply means you increase the amount of damage the player takes, or make the AI react faster / hit harder.
If you want the map to change based on the difficulty, simply implement a check for certain objects, and check if X object should appear at a given difficulty or not, and if not, simply hide it / remove it.
Adjusting the speed of the enemies, health of the player, and score required.
Then you don’t need to make different scenes what so ever. Simply modify those variables depending on the difficulty the player selected.
There are levels, so the player is sent to the title screen after each level so they can continue to the next by pressing a button.
You mentioned that for you, difficulty means modifying the enemy speed, the health of the player and the score required. None of these require you to make any changes to a scene you already created. Simply check in code for the difficulty the player selected, and adjust those numbers as needed when a new level loads.
I do not have a difficulty check in the code.
Then I’m not sure what you’re asking. If you want each next level to be more difficult, make it so.
If you’re saying that your game only has a single level, but it repeats and gets more difficult, then my previous statement stands. Simply modify those values based on how many times the player made it through your level.
I do not know how to do that. I have a game node2d scene, a player area2d scene, an enemy area2d scene, enemy spawner node2d scene, and a player laser area2d scene. I have the scripts necessary for each in those scenes. I do not have one script that is controlling everything. I do not know how to what you are saying.
You’ve given little to no information about your project and how it’s structured. None of us on these forums can read your mind or know what you do and do not know about game development, or how much experience you have in game development overall.
I recommend checking out some basic tutorials and get familiar with the engine, as well as programming as a whole, before you try to make something more complex.
A good starting point would be here:
Can you not ask for the information you need? I’m not going to give you every single thing there is to know about my game.
Can you not make your post in a way that gives us enough information to help you?
Please familiarize yourself with the rules of the forum, and how to ask questions.
YOU are the one who’s supposed to ask your question AND provide all the details necessary. If your question is too broad, try to look into it first and narrow it down to a specific problem that you cannot overcome.
Either this account is a WUM or an AI bot.