britzl / defold-input

Simplify input related operations such as gesture detection, input mapping and clicking/dragging game objects
MIT License
111 stars 26 forks source link

If you delete the object being moved, then we get the error #11

Closed notbadgun closed 4 years ago

notbadgun commented 4 years ago

If you delete (go.delete()) the object being moved, you get an error:

INFO:DLIB: SSDP: Started on address 192.168.100.59
ERROR:SCRIPT: /in/cursor.script:185: Instance (null) not found
stack traceback:
    [C]: in function 'get_position'
    /in/cursor.script:185: in function </in/cursor.script:93>

Is it possible to make protection that does not create an error and bypass such cases?

Thx!