Hi all, I have a rather perplexing issue, probably one thats a bit hard to explain
I have my game constantly scrolling, mostly vertical, but it also pans diagonally and on the X axis.. While it does the X panning to create diagonal or horizontal scroll movement, I have been attempting to stop my enemies moving off screen by setting the "flying enemy" layer scroll X ratio to zero, so that while it pans the enemies can stay above you.. that part works fine, I call it "X-locking" for short..
Now the initial lock works fine, but once I have scrolled, say, right for several hundred/thousand pixels, when I want to go back to normal vertical scrolling and release the "x lock" , I switch the "flying enemy layer" back to 100% scrolling and of course they layer just pops back to where it was several thousand pixels ago and everything disappears..
in the manual, it states that layer setting Scroll X / Scroll Y allows you to scroll a layer independently from other layers but I am unsure how this is executed.. It sounds like this is what I want, but have no idea how to control it...
I know that sounds kinda confusing, so to try and summarize , is there any way of forcing a single layer of moving objects to be occasionally locked to the center of the screen (while the enemies move about within it) and be able to switch this lock off, and keep the layer at the point it was released as opposed to leaping back to its origin?
if this is confusing I can try and make a simple cap to demonstrate or annotate a video of an arcade game that does the same..