B
Ben Ingber
Guest
Hi all
I've got a parallax set up that's working nicely. It's for a top down twin stick arena shooter. The view looks down into the arena so the lowest level is the floor.
My problem is that the floor moves as part of the parallax scroll, and I need the player/enemy objects to move along with the floor. I had hoped that I could reposition their Instance Layer as I reposition the floor Background Layer, but using an Instance Layer the layer_x command doesn't seem to do anything i.e. "layer_x([instance layer],xposition)" doesn't have any effect. The function seems to only work on background layers.
Do any of you clever people know if either -
1) I'm missing something obvious or
2) There's another way I could reposition the player/enemies to keep them in the same place relative to the movement of the floor?
I hope I've been clear, let me know if any clarification would help!
Ben
I've got a parallax set up that's working nicely. It's for a top down twin stick arena shooter. The view looks down into the arena so the lowest level is the floor.
My problem is that the floor moves as part of the parallax scroll, and I need the player/enemy objects to move along with the floor. I had hoped that I could reposition their Instance Layer as I reposition the floor Background Layer, but using an Instance Layer the layer_x command doesn't seem to do anything i.e. "layer_x([instance layer],xposition)" doesn't have any effect. The function seems to only work on background layers.
Do any of you clever people know if either -
1) I'm missing something obvious or
2) There's another way I could reposition the player/enemies to keep them in the same place relative to the movement of the floor?
I hope I've been clear, let me know if any clarification would help!
Ben