Skip to content

Instantly share code, notes, and snippets.

@reustonium
Created August 25, 2012 14:52
Show Gist options
  • Save reustonium/3466733 to your computer and use it in GitHub Desktop.
Save reustonium/3466733 to your computer and use it in GitHub Desktop.
Flashpunk Clamp() Problem
// Inside an update() where I can increase speed.x
FP.clamp(speed.x, -2, 2);
trace(speed.x);
// My trace shows values outside the clamped range :-(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment