#Spawn an object on left mouse click

10 messages · Page 1 of 1 (latest)

low stone
#

that silent did not work, but np

trail brook
#

first off don't use process

#

use _unhandled_input

low stone
#

yeah, you should be catching an InputEventMouse for the left button

trail brook
#

also you don't call duplicate on a PackedScene

#

just instance it

#

instantiate()

#

no need for onready

#

and use the event argument instead of Input

#

event.is_action_pressed()