You are browsing as a guest. Sign up (or log in) to start making projects!

5h 1m 30s logged

Level 2

Hello everyone, sit back and get ready for a long devlog, because today I have alot to talk about. Okay, so guys now we have finished level 2, it is fully completed, I just need to add one line of code (changing the scene to the right scene the next one) and then I am done and probably wont touch it. Since I have not devloged in a few days (I did little time and was busy) I will talk about alot of items which is basically what I did for the past few days.

  1. Shield
    Alright I really want to talk about the shield first. So if you guys watch the video you can see how the shield works. Obviously it doesn’t have the code, but I will talk about how I integrated it with the shop and how that works. So I have 2 items in my global script, shield enabled, and shield dead. If I go to the boss fight of my game (where the shield is not allowed and users dont get it) I say Global.shield_enabled = false. This allows me to set if the user can use the shield or not through out the game. And if you guys made games previously or used Godot, you know about func_process() this allows me to simultaneously run items. You might be wondering, how does this simultaneously running fuction affect the shield for the player, and why would I do this. Remember earlier when I used the Global shield enable to turn it on and off, well the process checks it and if it is false, then it makes the shield not visible and not work. I mainly was relying on this for the past few days, because I was working on the shield. I also used process to modulate and change the size of the shield bar shield durability based on how many hits the shield has taken and how many hits it can take, I divide it to get a percentage. I also added the feature that if the player dies, they lose the shield, for the player to get the shield back, they have to buy it again for 15 coins. I plan to add an animation at the beginning of the level showing the shield coming onto the player.
  2. The Shop
    If you guys saw in the video, you saw the shop is accessible from anywhere in the game. This was easy all I had to do was add a button with the shop icon, and make the shop items visible. But I also have to account for mobs aliens shooting the player while they are in the shop. Luckily godot has an in built function called get_tree().paused if I set this to true every item will become paused. But luckily I can set the shop node’s process mode to always so it works even when the game is paused. This solved my problem of the aliens shooting and moving while the player is in shop.
  3. Boss Fight
    If you guys didn’t know, for the past few days I have been working on the boss fight, I have not got enough time to finish it but today I finally finished it today! So in level one, there is a scene with the boss fight for goo rising, and now that is level 2 and the player is on mars I wanted lava. But I didn’t want to redraw it so I just modulated the goo (I now realize that was a bad idea). Because the goo was not originally white, the modulating color started green, so what ever I chose was darker and not the right color. So because of that I had to spend my time fixing the goo and changing it to white and grey. This way for my level 1 goo rise, I just modulate it to the goo green I want and for level 2 I modulate it for the lava. Also for the boss fight, I added it so the shield disappears when the player has to fight, and made the animations more clear.
    Anyways guys I think this game will turn out great, I am always looking for suggestions especially for level 3, bye guys!
0
2

Comments 0

No comments yet. Be the first!