This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes


I want to drag a member from members menu to Resource Path, and be able to preload it just like below:

extends Node

export (PackedScene) var wp

func _input(event):
    if event.is_action_pressed("click"):
        var new_wp = wp.instance()
        new_wp.position = get_viewport().get_mouse_position()


in Engine by (193 points)

1 Answer

+1 vote
Best answer

I'm not sure I completely understand your question. I created a custom scene which is just a Label, saved it. I then created an export var called customlabel and dragged that scene into it. Then i created the visual script and looked for mousedown action, upon which I would place an instance of the custom label at the position of the mouse click on the screen. See the screenshot below:

enter image description here

by (115 points)
selected by


That is great, I will try, and also try that with get touch for android possible. Will test and share! Thanks

Thanks again

What do you mean by mouse_down (action)? I add it in editor but it has no use.


Project > Project Settings > Input Map -> Action -> type in name mousedown, hit Add
Now click the + next to the new entry in the list mouse
down, Select Mouse Button, choose the button you want, then click Add.

Thanks vic.the.developer! You are great at visual scripting!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.