diff --git a/RSDKv3/Scene.cpp b/RSDKv3/Scene.cpp index 9435e1a4..fb8af8fe 100644 --- a/RSDKv3/Scene.cpp +++ b/RSDKv3/Scene.cpp @@ -268,6 +268,7 @@ void ProcessStage(void) // Update ProcessObjects(); + ProcessParallaxAutoScroll(); if (cameraTarget > -1) { if (cameraEnabled == 1) { @@ -338,6 +339,12 @@ void ProcessStage(void) Engine.frameCount++; } +void ProcessParallaxAutoScroll() +{ + for (int i = 0; i < hParallax.entryCount; ++i) hParallax.scrollPos[i] += hParallax.scrollSpeed[i]; + for (int i = 0; i < vParallax.entryCount; ++i) vParallax.scrollPos[i] += vParallax.scrollSpeed[i]; +} + void LoadStageFiles(void) { StopAllSfx(); diff --git a/RSDKv3/Scene.hpp b/RSDKv3/Scene.hpp index ca675d32..ecb35bb9 100644 --- a/RSDKv3/Scene.hpp +++ b/RSDKv3/Scene.hpp @@ -201,6 +201,7 @@ extern bool drawStageGFXHQ; void InitFirstStage(); void ProcessStage(); +void ProcessParallaxAutoScroll(); void ResetBackgroundSettings(); inline void ResetCurrentStageFolder() { strcpy(currentStageFolder, ""); }