there any way to remove the deceleration of an object?

Get help using Construct 2

» Mon May 11, 2015 9:14 pm

hello,

there any way to remove the deceleration of an object? It is that the problem is that when given a very high deceleration value also affects the acceleration and then the speed decreases.

B
5
S
1
Posts: 34
Reputation: 445

» Mon May 11, 2015 10:19 pm

I always thought setting it to 0 pixel per second removed all deceleration.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

» Mon May 11, 2015 10:37 pm

okay thanks. I want that when an object passes through a certain position x , stop in this position , for example :
if x <2 --> object has speed
but
if x = 2, the speed of the object is 0 and the object position is 2.

The problem is that if the object has acceleration and deceleration the object never stop in x=2.
B
5
S
1
Posts: 34
Reputation: 445

» Mon May 11, 2015 10:42 pm

There is a big chance the object is never exactly at x=2
if it's at 2.1 or 2.05 or 2.2 the event won't trigger..
you could use something like
--object.x is between 0 and 4
> set object position x=2 and set speed to 0
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

» Mon May 11, 2015 10:47 pm

okay thank you very much
B
5
S
1
Posts: 34
Reputation: 445