Hello everyone. Please help me, I can't seem to make the scrolling work. The condition is that there is a background and two objects. I need to move the background and objects left or right by clicking on any of the two objects, depending on the direction

Hello everyone. Please help me, I can’t seem to make the scrolling work. The condition is that there is a background and two objects. I need to move the background and objects left or right by clicking on any of the two objects, depending on the direction. Has anyone solved this problem before? Thank you.

For example you have object that is left arrow and object that is right arrow on screen and if you click them background moves left or right depending on which you clicked?

If so then you simple either make event to change X position of camera ADD for right and SUBTRACT for left for start try 1 or 2

Or you can do the same with Camera X position

Here is how you can make it with a tiled sprite object. For the actual objects of the game i would place them on a layer between Background and Base layers and move its camera using MoveSpeed variable.




123

2 Likes