Language…
9 users online: aroohwahoou, Bonobi, Boosius, Buflen, h.carrell, Mario's GameBase, pnaha, ShirleyVAga, StarWolf3000 - Guests: 100 - Bots: 143
Users: 67,378 (2,045 active)
Latest user: Biell

Layer 2 Parallax Causing Layer 3 Flickering

Hi, got a bit of a problem when using parallax in a level, and I'm hoping someone can help me out.
Everything was working great until I used this code for parallax (plus a gradient) to keep the moon in place. Then this happens:



The layer 3 spazzes out ONLY when scrolling horizontally. Anyone got any idea why this is happening? Any help would mean a lot!!


Edit:
Tested out the code without the gradient and the layer 3 seems to reset its position every 8 pixels.

Are you doing anything to the layer 3 scroll settings (#lm{props}), i.e. have the advanced bypass settings enabled? Maybe those are interfering.

Just a wild guess; not sure if that's actually the problem.


 
Yea, I enabled it so I could change the scroll speeds and put it on the subscreen.

just for curiosity, why are you trying to use parallax?

just by looking, apparently the background inst made for parallax.. (i could be wrong tho)

just remove the parallax code and make it scroll at different speed than the layer 2 and you will probably get the effect you want

edit.. i guess its for the moon?!
Yea, it's for the moon! The pine trees in front and the moon are on layer 2, so I have to use parallax to prevent the moon from scrolling.

ive had this sort of problem before. The code is pretty much the same (from Effect Tool). Try inverting the order of the codes in the init. Putting the parallax code after the hdma.. i think thats how i solved it
Just gave that a try, and it didn't change anything. I had a good feeling it wouldn't work since I still have the problem even without a gradient. Seems to be entirely caused by the parallax...