What is Round coordinates?

What are Round coordinates present in Platformer behavior? What does it do? Does it make any difference if I check or uncheck it?

Not sure but I think is for coordinate calculations to be integers instead of floats, so X/Y always are going to be integers never float. Is most used on pixel perfect games. At least that is on Construct 2.

1 Like

Ulises is correct. It is supposed to round any platformer movement to integers.

The setting appears to be bugged, however. Here’s the ongoing bug ticket. Round coordinates bug · Issue #2664 · 4ian/GDevelop · GitHub

2 Likes

What I do is to set the round when I do the position of the player like
Change position of obj_player = Round(player_hitbox.X()) (x,axis), = Round(player_hitbox.Y()) (y,axis)
In some of my pixel games works well

1 Like

So, if my game is pixel perfect, I should check it, right?

1 Like

Yes and by default it is checked.
But it doesn’t work for a long time, I also use the action from UlisesFreitas, to reduce blurry and flicker.

1 Like