
More sprites, GameManager and refactoring
More Sprites We're making real progress now. In the last post, I showed the fish and the boat. But that's not all, I've also made a cloud and some water… or rather, the waves. I pushed the boat down slightly so it looks like it’s actually sitting in the water instead of hovering awkwardly above it. I thought about animating the waves to move back and forth, but I ran into some weird bugs. Instead of fighting that battle, I parked it for later and moved on. To make things feel more alive, I added a subtle bobbing effect to the ship. I did this by adding an AnimationPlayer to the Player scene, creating a new animation, and animating the Y position from 0 -> -2 -> 0. Then I set it to loop. It's a tiny movement, but it makes a big difference. The boat no longer feels static, it gently floats, like it's actually resting on water instead of glued to the screen. @onready var animation = $AnimationPlayer To get the animation reference. func _ready() -> void: animation.play("bopp") This is just
Continue reading on Dev.to
Opens in a new tab



