YouGroove Posted August 9, 2013 Share 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 Link to comment Share on other sites More sharing options...
gamecreator Posted August 9, 2013 Share Posted August 9, 2013 I believe the time functions should help you http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/time/ Quote Link to comment Share on other sites More sharing options...
YouGroove Posted August 9, 2013 Author Share 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 Link to comment Share on other sites More sharing options...
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.