How do I smooth movement with Physics and Pixel rounding?

Get help using Construct 2

Post » Thu Jul 13, 2017 9:08 am

Greetings!
I have a pixel art game which requires physics to move every object.
Only problem that currently exists is that the movement on some speeds is very jerky (sometimes even moving back and forth a pixel during movement).
Is there a way to convert physical velocity into round pixels to make the movement smooth or is there another workaround?

Thank you in advance. :ugeek:
B
6
S
3
Posts: 122
Reputation: 1,632

Post » Fri Jul 14, 2017 8:25 am

The key here, If someone wonders is to :
1. Make a transparent object with Physics and simulate physics on it
2. Your visible sprite and EVERY TICK set it's position to int(physics_obj.X) and int(physics_obj.Y)

Hf
B
6
S
3
Posts: 122
Reputation: 1,632


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests