Friday, July 29, 2022
HomeGame DevelopmentRecreation Maker Studio 2 Digicam Jitter

Recreation Maker Studio 2 Digicam Jitter


I’m making an attempt to comply with an RPG tutorial and I used the code for digicam following from there, however in my case for some purpose all sprites jitter each time the digicam strikes and likewise when some NPCs transfer. Possibly there’s one thing new in GameMaker that I ought to be implementing because the tutorial I am following is 5 years outdated. I attempted utilizing spherical() as some options stated it’d assist, but it surely did not.

enter image description here

Right here is my code for digicam following in obj_camera in its Create occasion:

following = obj_player;
h_border = 60;
v_border = 30;

Right here is my code for digicam following in obj_camera in its Step occasion:

    x = spherical(clamp(x,(following.x) - h_border, (following.x) + h_border));
    y = spherical(clamp(y,(following.y) - v_border, (following.y) + v_border));

And in Room ViewPorts I enabled object following and set it to obj_camera.

And right here is my settings for the graphics and I’ve 60 FPS

I do know I ought to most likely use one other digicam arrange, however this one was proven within the tutorial by FriendlyCosmonaut and I simply thought I would use it because it was working for her. Additionally I exploit mac laptop possibly it has one thing to do with that.

I might actually respect any assist, thanks.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments