Scripting a players position (moving a object around on the screen)
<p>Im looking into a small javascript game and is currently making a tool for testing "sqeuences" (game scenes where i want the script to move the player around thru waypoints, gonna call it actionscenes :D).</p>

<p>I think I almost got it right, but as you can see if you copypaste the code to a html the logic is broken. I need help with the trigonometric calculations:</p>

<p><a href="http://pastebin.com/TfGU85ru" rel="nofollow">http://pastebin.com/TfGU85ru</a></p>

<p>Any helpful tips? :D</p>

<p>It uses JQuery.</p>
