Glides after a double jump??+ Transition Cameraz
I will not lie, as I learn new stuff each day, I may or may not be getting better. Sounds fake, I know.
But in seriousness, today I made myself super proud because as I research code to make my character do the things I want it to do, I actually managed to figure out how to blend the code that I've learned for other mechanics and combine elements into my own (making a double jump end with the ability to glide). Sounds fairly straightforward, but dang if I'm not super proud of this little-spark-of-genius-moment feeling. Doesn't take a ton of code, but I needed to combine multiple factors such as coyote timing, jump counting, and animations, so it took a bit of brain power to not mix anything up and have everything function the way it needs to!
Another thing I did today was making a 2D camera that snaps to position when you enter a new room. It is pretty easy when you look at those mere handful of lines of code, but sure took me a second to figure out today. I have a screenshot included above in case anyone could use the code! Basically what it does is give you a 2D camera that follows the player between rooms (scales to the size of the viewport/screen), and gives you the view of the room until the player moves onto the next room (Zelda-style camera).
This code works for Godot 4! It can be hard to find help for code that works for Godot 4, as it was released just in March 2023 and changed a lot of scripting stuff. Yippeeeee.
Safe In Our World Submission
Status | In development |
Author | Kalopsian |
Genre | Adventure, Platformer |
Tags | 2D, Cute, Feel Good, Indie, Pixel Art, Puzzle-Platformer, Short, Story Rich |
More posts
- Oh my god it diesJul 17, 2024
- Each Day is a StepJul 02, 2024
- Menus, Music, and MadnessJun 28, 2024
- My First Game Jam!Jun 15, 2024
Leave a comment
Log in with itch.io to leave a comment.