How to make a object in screen if the object is not touched for 2 seconds then the object would be lost without removing the same object in the layer?
Help me please
give the object timer behaviour
and a boolean variable istouched
set the timer for two seconds
if the object is touched set istouched to true
object on timer
if istouched is not true - object destroy
Develop games in your browser. Powerful, performant & highly capable.
Try this demo