How to prevent the actor from sliding?

1968

  • Posts: 103
Hi!
In the behavior of the actor pushes the object.
I want to eliminate slipping.

« Last Edit: April 03, 2019, 01:49:07 pm by 1968 »

JeffreyDriver

  • Posts: 2262
You need to set the friction of the object. It goes from 0.00 to 1.00

1968

  • Posts: 103
I already tried to play with physics.
This does not work.

JeffreyDriver

  • Posts: 2262
I didn't actually check the swf you posted. Friction won't work because it's not touching anything except the player, which it's being pushed by.

Try increasing the weight. Though you might want to consider making the objects snap-to-grid anyway which would remove the need for physics.

LIBERADO

  • *
  • Posts: 2720
Increase the linear damping.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

1968

  • Posts: 103
Thanks for the tips!
I tried everything before turning to the forum.
This type of game is missing a platform and this is a problem.
I have to complicate the code based on the binding of the object to the grid. 8)