UI & Changing Levels in C# Godot [Andromedoom Dev Log 9]
Polysthetic
👾Welcome to the Andromedoom dev logs! In episode 9, I'm showing you how I implemented the level selection system using dictionaries with the scene changing function, and simple instantiation of packed scenes. In the vlog, I will be showing the progress on the alien AIs. I had coded three at this point, the Crab, Octopus, and Squid, the original case from Space Invaders! I hope you enjoy this video series and stick around for the game's development! 👋
⚔️ Shout out to the Savvy Barbarian for his Blender to Godot animated model pipeline video: https://www.youtube.com/watch?v=lqEGJBpCFwA
⏱️ Timestamps: 0:00 Intro 0:50 Summary of the project so far 1:30 Creating the title screen 2:35 Scripting - Using the ChangeSceneTo method 3:35 Scripting - Level selection 4:15 Storing levels and their data in dictionaries 6:05 Creating the level selection screen 7:50 Scripting - Level selection button to update label 10:20 Scripting - Changing levels using the dictionary and instantiation 14:30 Scripting - Level selection buttons to change scene 16:40 Conclusion on tutorial 17:05 Dev log - Animations, camera tracking, projectiles, armour system 21:00 Dev log - Next steps
📻 Addenda:
- Correction: You should check if the level is unlocked BEFORE clearing the children underneath the Level Manager, for obvious reasons...
- Don't use the "Button" node, use "TextureButton"! This way you can add textures for the button states (e.g. normal and pressed) and not have to worry about removing the background with themes.
- Best to use "pressed" instead of "button_up" for the signals, since "pressed" can activate in different modes.
- Sometimes you might get errors when loading levels via instantiation under the level manager. This can happen because the level is instantiated with all its associated "Ready" functions called BEFORE the other level assets are cleared under the level manager. If this is happening to you, try using CallDeferred("add_child", instance), instead of AddChild(instance) directly.
🎶 Music tracks from:
- So.Lo x Goson - QuietPath
- Provided by Lofi Girl
- Watch: https://www.youtube.com/watch?v=9g0xgyEHsA8
- Listen: https://fanlink.to/QuietPath
You can also visit me at: WEBSITE 🌏 https://polysthetic.com THREADLESS 🕶️ https://polysthetic.threadless.com DRIBBBLE 🏀 https://dribbble.com/polysthetic YOUTUBE 🎥 https://youtube.com/c/polysthetic AUDIOMACK 🎼 https://audiomack.com/polysthetic ... https://www.youtube.com/watch?v=W9oYHF-iCG8
158360812 Bytes