hi,
I’ve got a puzzle system working well with using the “when moved” puzzle.
I have an object that when mouse dragged, it rotates, and when the drag is stopped, a procedure tweens the object back to it’s original rotational values (0,0,0).
now,
with the JOYSTICK on the game pad assigned to rotating the same object…
What’s the best method to reproduce the “drop do:” feature of the “when moved” puzzle ….working on it while it’s joystick listener is working?
i was thinking.. Gamepad input “Timestamps” maybe? (how would i designate a PREVIOUS timestamp? to compare the current one to??)
i DO have a version (attempt) where i have if my joystick readings (clamped) read 0 then trigger the “tween – to -origin) thing.. however.. thought there may be a simpler way, since this also affects if the joystick hasn’t even been touched yet.
… i definitely need to understand how to compare timestamps.
any advice would be grand!
thanks.
EDIT: ..hmm.. checking out what you have going on in the updated Farmer’s Game Example..curious… do timestamps provide the time OF the input event AND the TYPE of event it was? ie: button 1 button 2 etc?