🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Parallax Problem

Started by
0 comments, last by neutro1980 4 years, 2 months ago

Hello.

I'm a noob developer in Game Maker Studio 2.
I'm currently working on a ice level, with parallax layers. The problem is that the "Bg_Mountains" adjusts one pixel to the right whenever player and camera stops moving right. And adjusts one pixel left if player moves left and stops. It doesn't look good in my opinion. Anyone got some thoughts on this problem? Do I have to upscale the whole project to "hide" this(it doesn't go away I know) or is there any other way?

Code in oCamera step event:

var mountains = layer_get_id("Bg_Mountains");

layer_x(mountains, camera_get_view_x(view_camera[0]) * 0.90 ) ;

The game is in 320x180 resolution. Thankful for some suggestions!

None

This topic is closed to new replies.

Advertisement