I am trying to follow an RPG tutorial. I used the code for the camera following from there, but in my case for some reason all sprites jitter every time the camera moves, and also when some NPCs move.

Maybe there's something new in GameMaker that I should be implementing, as the tutorial I'm following is 5 years old. I tried using `round()` as some solutions said it might help, but it didn't.

[![enter image description here](https://i.stack.imgur.com/OneaU.gif)](https://i.stack.imgur.com/OneaU.gif)

Here is my code for the camera following in `obj_camera` in its *Create* event:

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

```

Here is my code for the camera following in `obj_camera` in its *Step* event:

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

```

And in the Room's Viewports, I enabled the object following and set it to `obj_camera`:

[![](https://i.stack.imgur.com/MCJ4E.png)](https://i.stack.imgur.com/MCJ4E.png)

And here are my settings for the graphics; I have 60 FPS:

[![](https://i.stack.imgur.com/25Eq7.png)](https://i.stack.imgur.com/25Eq7.png)

I know I should probably use another camera setup, but this one was shown in the tutorial by FriendlyCosmonaut and I just thought I might use it as it was working for her. Also, I use a Mac computer, maybe it has something to do with that.

I would really appreciate any help, thanks.