Hi everyone.
So, I'm struggling massively with making a chase section where the player has to move up and down to avoid moving events that spawn on the road, as seen in the pic below.
I've tried making a static map and setting it to loop in the map settings. Then I use parallel events to keep the player moving forward and checking for up and down movement. I then have a spawner that's ahead of the player and matching their movements, which spawns obstacles based on a timer.
I keep running into issues where all the spawned objects will just vanish at certain times if the player presses enter during dialogue. It's just been really problematic. I also have no good way to destroy spawned objects once they go off screen. Because it respawns the same objects over and over, it was sort of working, but then there's some sections where the guy chasing the player catches up and talks, during this it doesn't spawn. So, when the dialogue ends and the obstacles start respawning again, most of the time they'll visible on screen and suddenly vanish to be respawned.
Is there any way I can do this without actually moving the player or anything else forwards and looping through the map?
One thing I'm trying now is Galv's Layer images plugin to put a layer behind the player. I'm using it instead of a map. I can set the layer to move in X and scroll and everything. It does look good. I thought I could just then spawn out obstacles ahead of the player and it'd be fine. The issue here is that the obstacles (rocks like below) aren't moving at the same speed as the background image, so it looks like they're literally moving rather than just sitting there on the ground.
If I can get it this way where I'm moving the map and not the character, that would make things super easy.
So, any way to move an event at the same speed as a parallax map or background image?
Thanks!
So, I'm struggling massively with making a chase section where the player has to move up and down to avoid moving events that spawn on the road, as seen in the pic below.
I've tried making a static map and setting it to loop in the map settings. Then I use parallel events to keep the player moving forward and checking for up and down movement. I then have a spawner that's ahead of the player and matching their movements, which spawns obstacles based on a timer.
I keep running into issues where all the spawned objects will just vanish at certain times if the player presses enter during dialogue. It's just been really problematic. I also have no good way to destroy spawned objects once they go off screen. Because it respawns the same objects over and over, it was sort of working, but then there's some sections where the guy chasing the player catches up and talks, during this it doesn't spawn. So, when the dialogue ends and the obstacles start respawning again, most of the time they'll visible on screen and suddenly vanish to be respawned.
Is there any way I can do this without actually moving the player or anything else forwards and looping through the map?
One thing I'm trying now is Galv's Layer images plugin to put a layer behind the player. I'm using it instead of a map. I can set the layer to move in X and scroll and everything. It does look good. I thought I could just then spawn out obstacles ahead of the player and it'd be fine. The issue here is that the obstacles (rocks like below) aren't moving at the same speed as the background image, so it looks like they're literally moving rather than just sitting there on the ground.
If I can get it this way where I'm moving the map and not the character, that would make things super easy.
So, any way to move an event at the same speed as a parallax map or background image?
Thanks!