Drag n Drop Velocity

sylg

  • Posts: 7
Hello Everyone,

I'm working on a game and I need to to be able to drag and drop an actor in a direction and when I the mouse is release the actor will keep the same direction and velocity.

I've tried modifying Jon Drag&Drop behavior from iStencyl2.0 but to no result :(

Can anyone help ?

Cheers

Abigayl

  • Posts: 807
There is no native support to find the velocity of the mouse. Your best bet is to store where the mouse was originally and compare it to the end location to set the velocity... not really the same, but the closest I can come up with without using heavy coding.
If you need help, please check my tutorials either here or Kongregate (http://www.kongregate.com/accounts/Abigayl) or come over to my stream: http://www.livestream.com/poweredbyflowers

sylg

  • Posts: 7
Thanks for the quick reply, I will look into that :)