YouGroove Posted August 9, 2013 Posted August 9, 2013 Well In fact i want to have some PC first game using super simple mouse move detection : Mouse Click and keep clicked, mouse move in a direction, Mouse release How to detect the time passed between a click and a click release ? How to manage that in UpdatePhysics() loop ? Any idea ? Quote Stop toying and make games
gamecreator Posted August 9, 2013 Posted August 9, 2013 I believe the time functions should help you http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/time/ Quote
YouGroove Posted August 9, 2013 Author Posted August 9, 2013 Thanks, i should had read the docs, didn't think it could be easy : Time.getCurrent() or Millis() save in in some variable when mouseDown Than call again getCurrent on mouseUp than just calculate the difference between the two variables to have some time ellapsed. 1 Quote Stop toying and make games
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.