–1 vote

if (left_click on sprite):
print("selected sprite")

in Engine by (52 points)

You should explain your problem with more than just two lines of pseudocode.

1 Answer

0 votes
Best answer

No problem with a little thought fix the problem sorry, my english language is little bad but i can understand you. i used area2d , i use input event for mouse event. thnx mate for help me done :)

by (52 points)
selected by
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 webmaster@godotengine.org with your username.