Invalid get index 'tween' (on base: 'Tween')

Hello! I’ve been diligently following this game development course, but I’ve encountered an issue when attempting to launch my game in Godot. Despite thoroughly reviewing my code against the tutorial, the program fails to respond. After inspecting the debugger, I noticed an error in the Stack Trace tab. I’m uncertain if this error is causing the problem, but I would greatly appreciate any assistance in resolving this issue. Thank you!


image

Hi Austen,

Not at pc just now, but is that line 10 and 11, think might be

tween.tween_property(

Without the additional .tween in it. As we’re setting a direct property of the tween object we just created.

See if that gets you back working.

Darren

1 Like

Hey Darren, just wanted to let you know that getting rid of the extra ‘.tween’ sorted out the problem I was having. Thanks for the tip, much appreciated!

2 Likes

No worries. Glad your back on track :+1:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms