Limiting acceleration

This forum is currently in read-only mode.
  • With the Custom Movement behavior, is it possible to limit acceleration? I tried always setting a private variable on the object to the speed of the object, and then only activating the event when the speed was under a certain number, but it caused the object to "stick" at the max speed.

  • You can use clamp(a,b,c)

    a being the change, b the lowest value and c the highest, so you would set the c value to the maximum speed.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I had a Custom Player Movement thing going on in my game for awhile (though I ended up using 8 player movement). I did get what I think you want accomplished through this:

    Compare: Object[CustomMovement].Speed > MaxSpeed

    --> Set Object, CustomMovement, Change Speed, Set MaxSpeed

  • Sorry I didn't reply sooner, I've been having computer issues. Again.

    Thanks for the replies, both solutions work well! I've been creating a set of AIs that control space based fighter craft and capital ships, because the RTS behavior gets old after awhile... <img src="smileys/smiley17.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)