Skip to content

[FEATURE] Implement Parallax Scrolling Background linked to Player Speed #543

Description

@ikostan

name: Feature Request
about: Suggest an idea for this project
title: '[FEATURE] Implement Parallax Scrolling Background linked to Player Speed'
labels: enhancement
assignees: 'ikostan'


Description:
Implement a dynamic ParallaxBackground system that automatically adjusts its scrolling speed based on the player's current forward velocity.

Why is this useful? * Visual Feedback: Gives the player a much stronger sense of momentum and speed.

Proposed Implementation:

  1. Create a ParallaxBackground scene with layered ParallaxLayer and Sprite2D nodes for clouds/terrain.
  2. Create a parallax_manager.gd script attached to the root background node.
  3. In the main level script, connect the Player's speed_changed(new_speed, max_speed) signal to the Parallax Manager.
  4. Dynamically update the scroll_offset or scroll_base_offset in the _process loop based on the broadcasted speed.

Additional Context:
This builds directly upon the signal architecture established in Issue #279.

Metadata

Metadata

Assignees

Labels

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions