0 votes

I am going along with a video on how to do a simple drag and drop in Godot but this error keeps showing up and this being my first time using Godot I have no clue how to solve it. the line I am not getting to work is line (8,1) thanks in advance

var dragMouse = false

func _ready():

func process(delta):

func onArea2Dinputevent(viewport, event, shape_idx):

if Input is InputEventMouseButton:
    if event. is_pressed():
        dragMouse = true
    Dragmouse = false
pass # Replace with function body.
in Engine by (12 points)

1 Answer

0 votes

Capitalization counts. You've spelled it three different ways in that code: dragMouse, dragmouse, and Dragmouse. Pick one spelling and stick to it.

by (21,967 points)
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]e.org with your username.