@PumpkinsLinked I don't see a script attached to any of the objects in your scene tree, so I don't think its even running.

The warning you are getting in the log isn't really important, but can sometimes catch when you meant to do more with a function than just run it.

You can turn off the warning, amongst others, in the settings.

@PumpkinsLinked So I think you just need to drag actor.gd onto Player.

Follow

@saluk @saluk Just tried that out, its telling me that the
"script inherits type 'kinematicbody2d', so it cant be instanced in object of type: 'node2D' "

· · Web · 1 · 0 · 0

@PumpkinsLinked Each object in your tree has a type. The one that looks like a person icon is a KinematicBody2D. That's the player object that I think you are trying to drive with your script.

You can see the node type if you hover over the name in the scene tree.

If your .gd script 'extends' KinematicBody2d, those are the only objects it could be assigned to. In godot every object is of a certain type, and an assigned script is like overriding that specific type with new behavior.

Sign in to participate in the conversation
YesterGearPC's Retrotech Mastodon Server

Welcome to YesterGearPCs Retrotech Mastodon! We hope you enjoy your stay. This server serves the purpose of discussing retro & vintage technology, primarily computing devices.