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

Open comments for this post

4h 45m 36s logged

Level 1 Complete

Hello everyone, I just completed level 1, adding the finishing details fixing bugs, and adding a very cool parallax background.

  1. Major Bugs, I didn’t have major bugs but I had many bugs, for instance I had a scene change after the player enters the spaceship, this was for them to escape earth, but for some reason the scene change never worked, and it kept saying null, even when I printed this function. To fix this bug I made a variable and before the function was called I set it, so ** var tree = get_tree() ** this allowed me to call the functions without it becoming null, I still have no idea why the function was null but I guess I will have to figure that out. Another bug was my alien. So for my level one I have moving aliens, following aliens, and I was going to have moles, but I think I will add them in level 2 to keep it simple. But the problem was my following aliens, whenever they land on the player they never made the player lose a life or disappear. I looked at the collision bodies, and the one that gives the alien it’s shape was larger than the area 2d’s body, so therefore it would have never made contact with the player and would have not done anything to the player. To fix this, I adjusted the body size of both collision bodies.
  2. Parallax Background, a parallax background is basically different parts of the background moving at different speeds when the player moves. I made 7-8 layers of background, trees, clouds, bg colors, floor. To use them I used the parallax 2d in godot and set the scroll speed to different values for each, the farther away the bg element the lower the value, then you get the result as clouds moving at different paces of other elements as shown in the video. But this was not all that easy, I had a bug where the parallax elements went down so much when I started the game, I am pretty sure I am starting the player in the air, and when he falls so does the elements, so I have to place him down, also it is automatically adjusting my scroll offset.

Summary/Level 2

That is about it for level 1, I also fixed the coins in the corner, and added more story. For level 2, I am going to start with making a parallax background, and make the actual game. Thank you, bye!

0
2

Comments 0

No comments yet. Be the first!