I need to write a bit of code that lets me grab a platform with the mouse and then throw it with the mouse. Any one have any Ideas on how to do this or example .caps?
here is the psudocode I am currently using
Platform Variables needed:
+startX
+startY
+curX
+curY
+clicked
:::::::::::::::::::::::::::::::
+On click [platform]:
-set : startX = mousex
-set : startY= mousey
-set :clicked =1
____________________
+On Mouse Hold:
-set : currentX = Xmouse
-set : currentY = Ymouse
______________________
+On Mouse Up
+Clicked = 1
-X velocity = startX-currentX (//iffy code here, but use these numbers together to get a speed)
-Y velocity = startY-currentY
______________________
+Every 3 ticks:
+On Mouse Hold:
-set : startX = currentX
-set : startY= currentY
// so the platform does not go flying if it is held in 1 spot too long....