GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How do you prevent your actor from sliding after acceleration?

FatalCrestFatalCrest Posts: 113Member
edited November -1 in Working with GS (Mac)
Need a little help with this. :3

Comments

  • BarkBarkCoBarkBarkCo Posts: 1,400Member
    You won't believe this, but that is what the OTHER pedal is for ... no, not that one, the one in the middle! ... ;-)
  • FatalCrestFatalCrest Posts: 113Member
    Lol
  • MagoNicolasMagoNicolas Posts: 2,090Member, PRO
    With more Friction or Stoping His Linear Velocity X.
  • FatalCrestFatalCrest Posts: 113Member
    I tried using Friction and Drag and I get the same results. ._.
  • BarkBarkCoBarkBarkCo Posts: 1,400Member
    Try adding `CHANGE ATTRIBUTE: self.LinearVelocity.X to 0` to the otherwise section on your acceleration rule.
  • FatalCrestFatalCrest Posts: 113Member
    kk :D
  • ORBZORBZ Posts: 1,303Member
    Move: 0,0
  • rickynikorickyniko Posts: 85Member
    just use the 'Move' attribute. no sliding at all,
  • FatalCrestFatalCrest Posts: 113Member
    Using the move attribute makes my actor look a bit stiff. After my acceleration I just want the sliding after it to be less ongoing. When I accelerate too much a tend to slide about half my map distance. I just want very little slding to happen afterwards. Sorry kinda being a little picky here.
  • ORBZORBZ Posts: 1,303Member
    use drag, a high value, like 1000

    remember when you accelerate though to turn off the drag or you won't move. or optionally, make your acceleration equal to your drag plus some increase. drag+100 for example.
  • ORBZORBZ Posts: 1,303Member
    use drag, a high value, like 1000

    remember when you accelerate though to turn off the drag or you won't move. or optionally, make your acceleration equal to your drag plus some increase. drag+100 for example.

    move 0,0 will make you come to a full stop, instantly.
  • JuggerJugger Posts: 238Member, PRO
    Interpolate
    self.LinearVelocity.X - 0
    Duration - 0.5

    Its working :)
  • ORBZORBZ Posts: 1,303Member
    Nice Jugger
  • veibhavveibhav Posts: 15Member
    edited January 2012
    Dear Jugger ,
    I am new developer in the Gamesalad and facing same above mentioned problem can you please describe your solution.
    How can I apply this.
    Interpolate
    self.LinearVelocity.X - 0
    Duration - 0.5

    Thanks Jugger.
This discussion has been closed.