FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
More sprites, GameManager and refactoring
How-ToProgramming Languages

More sprites, GameManager and refactoring

via Dev.toViktor de Pomian Sandell1mo ago

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

Read Full Article
13 views

Related Articles

Pokémon Champions is coming to the Nintendo Switch on April 8th
How-To

Pokémon Champions is coming to the Nintendo Switch on April 8th

The Verge • 1w ago

Why You Should Start Using Negative If Statements in Your Code
How-To

Why You Should Start Using Negative If Statements in Your Code

Dev.to • 1w ago

How-To

Most Developers Build Software Wrong — Here’s What Actually Matters

Medium Programming • 1w ago

DARVO in Text Messages: Real Examples and How to Spot It
How-To

DARVO in Text Messages: Real Examples and How to Spot It

Dev.to Beginners • 1w ago

How to Recognize Guilt-Tripping in Text Messages
How-To

How to Recognize Guilt-Tripping in Text Messages

Dev.to Beginners • 1w ago

Discover More Articles