how I can DO stop vibrating?

Get help using Construct 2

Post » Mon Jan 02, 2017 9:18 pm

https://drive.google.com/open?id=0By5RySD620WDaHl0emlLa3VFV28

if I press the black square on the right, he goes to the right, if I click on his left, the square goes left but because it vibrates as if he had Parkinson?

Simple point-and-click ...
B
7
S
2
Posts: 55
Reputation: 692

Post » Mon Jan 02, 2017 10:09 pm

The resolution (in distance travelled) you can measure, say at 60 fps and with that speed of 330 pixels/second, is like 6 pixels.
So, on the moment you measure that x, the object made an overshoot of between 1 and 6 pixels. And then you send it back 6 pixels.
Back 6 pixels? Ah yes, because the next moment that you can measure it travelled at least 6 pixels. Well, probably 4 due the acceleration.
So, next tick, same thing happens, it just overshoots on the other side, and now it oscillates between two overshoot positions.

Besides that. When you stop emulating/pressing the key, the deceleration kicks in,
well at 5000 pixels/second that is not that much extra distance travelled, guess you got that one.

https://www.dropbox.com/s/1la0xish5b3e3 ... .capx?dl=0
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue Jan 03, 2017 11:44 am

It 's always nice to meet people like her. Thanks so much!
B
7
S
2
Posts: 55
Reputation: 692


Return to How do I....?

Who is online

Users browsing this forum: mcscooter, TRMG and 28 guests