I would like to know how can i calculate hold timing of an object , suppose if user hold any object and don't let it go then once he leave the object i see the exact time duration he has hold it. Maybe it's common question but i am unable to find the answer plus i am newbee in construct2...
Develop games in your browser. Powerful, performant & highly capable.
Player is holding object, every 0.1 seconds add 0.1 to a variable?
Use a instance variable, timetouched.
then your event:
object Is dragging: add dt to timetouched
is touching object would probably work as well as condition. timetouched will store the time it got touched. Don't forget to set it to 0 again somewhere if you want it to reset.