D
Dario8676
Guest
Hi all, I haven't worked very much with background layer speed manipulation in gamemaker when it comes to the concept of parallex scrolling and moving backgrounds, so I was hoping for some help.
In my room I have a background layer for clouds that I set a Horizontal Speed of -.5 in the layer properties. I also have a few other background layers for mountains and a moon that I've created a parallex effect on.
The issue is that the clouds do scroll on their own at -.5 but once the camera moves with the player, the cloud moves -.5 plus the characters speed thus ruining the effect.
In the camera step event I was testing the following:
layer_x(bgCloud1, x);
This freezes the cloud background to move along with the camera x, but then magically the -.5 Horizontal speed no longer works and the cloud doesn't move on its own anymore. Any ideas?
In my room I have a background layer for clouds that I set a Horizontal Speed of -.5 in the layer properties. I also have a few other background layers for mountains and a moon that I've created a parallex effect on.
The issue is that the clouds do scroll on their own at -.5 but once the camera moves with the player, the cloud moves -.5 plus the characters speed thus ruining the effect.
In the camera step event I was testing the following:
layer_x(bgCloud1, x);
This freezes the cloud background to move along with the camera x, but then magically the -.5 Horizontal speed no longer works and the cloud doesn't move on its own anymore. Any ideas?