My player moves without a script

4.4

I was following Brackeys Beginner tutorial and when I got to 55:55 I saw that my player had no script attached to it, but it still moved.

I think the physics are tweaking or the collision was an unstable shape(like a triangle upsidedown or a cylinder that on rigid movement) can u explain more pls like give a screen record of the footage pls

1 Like

I’m a new user so no. But are you sure you didn’t mean to comment somewhere else?

1 Like

You can upload the footage e.g. here https://streamable.com/ and share the link.

His comments were fully valid, but based on pure assumptions. It’s hard to deduct what actually happens in your case without any further evidence or explanation, as there is not much to grab onto.

1 Like

He attached a script,
Watch again

1 Like

can i have vid


no,you can have img xD

that’s at the 55:55 (what a number ) of the video

1 Like

this means that the player moves with arrows and the ‘ui_accept’ button thing, i realized that theres a move_and_slide() at line 28 it may be the problem or something

that’s not the prob,the OP is saying that the player moves without a script but it has a script. maybe he just missed it

1 Like

hmmm he forgor about the script then :skull:

1 Like

I’m utterly confused about the conversation here. According to OP, this is about the player moving while not having a script, so they seem aware that it has a script in the tutorial. But in their reproduction project, the player allegedly moves even without that script attached.

I guess the player either has the script in another scene (like the game scene) or it just looks like the player is moving because of the animated sprite playing. Impossible to tell without further information.

4 Likes

If you can move it with input, there is a script. If it moves on its own, it could be a physics problem. Give info if you want your problem solved :slight_smile:

1 Like

without a script attached to it it’s impossible for it to move (not just an animation playing is considered as moving) and a characterbody2d doesn’t have any out of the box falling physics.
and he gave almost no info about it .
maybe it’s just a mistake

1 Like

A beginner could easily phrase it wrong and describe an animated sprite playing as “moving”. And (though very unlikely when following a tutorial) the player could also be moved from a different script - or it just has the script attached in the “game” scene, making the OP think it wasn’t attached when looking into the player scene.

2 Likes

So did I.

It’s linked.

It detects my inputs.


I can still access the script in other ways. I think it’s just a vitral bug.

If you right click the script file in Godot’s FileSystem, then “View Owners…”, which scenes does it show?

1 Like

Seems like it’s a ui bug