TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Drag n Drop Velocity
Pages:
1
Drag n Drop Velocity
sylg
Posts: 7
March 12, 2012, 12:50:33 pm
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
March 12, 2012, 02:05:13 pm
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
March 12, 2012, 03:39:51 pm
Thanks for the quick reply, I will look into that
Pages:
1