Hi all,
Not sure if this should go here or plugin requests, but first I wanted to establish the scope of my situation, and see if a plugin/script would even be necessary.
So, I have a parallax background that has a sky and a sun. The map scrolls horizontally. I would like to make it so that when the sun scrolls to the middle of the map, and the player happens to be standing in that location at the same time, they're illuminated and an event occurs (e.g. it generates a key or unlocks a door).
Is there a way to determine the current x/y position of the parallax background (let's say the position of the edge or something) as it is scrolling? And I could then plug that information into an event switch/condition?
The only other way I could think of to do it would be to create a separate graphic for the sun, set it as an event with a character sprite, and have that scroll independently, but then I'd have to set up warps at the edge of the map so it loops back to the other side, and I'd have to make sure it moves at the same speed as the parallax background.
This might all be possible, and easier than my first suggestion, I just am too novice to know how off the top of my head.
Any help is appreciated!
Not sure if this should go here or plugin requests, but first I wanted to establish the scope of my situation, and see if a plugin/script would even be necessary.
So, I have a parallax background that has a sky and a sun. The map scrolls horizontally. I would like to make it so that when the sun scrolls to the middle of the map, and the player happens to be standing in that location at the same time, they're illuminated and an event occurs (e.g. it generates a key or unlocks a door).
Is there a way to determine the current x/y position of the parallax background (let's say the position of the edge or something) as it is scrolling? And I could then plug that information into an event switch/condition?
The only other way I could think of to do it would be to create a separate graphic for the sun, set it as an event with a character sprite, and have that scroll independently, but then I'd have to set up warps at the edge of the map so it loops back to the other side, and I'd have to make sure it moves at the same speed as the parallax background.
This might all be possible, and easier than my first suggestion, I just am too novice to know how off the top of my head.
Any help is appreciated!