Godot doc "Creating your first script" doesn't work

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By terebi

Hello everyone.
I’m following the step-by-step guide of Godot docs, I’m stuck in this section

where we have to make the Godot icon rotate around itself (for me nothing just happens), and wanted to know if I’m doing something wrong or did it change in the new version.

this is my code

    extends Sprite2D

    var speed = 400
    var angular_speed = PI

    func _process(delta):
        speed += angular_speed * delta

thanks a lot.

:bust_in_silhouette: Reply From: GameSchool


Looks like you didn’t update the parameters self.position and self.rotation as they did in the example

Ohhhhh yes you’re right !! thanks a lot!

terebi | 2023-04-06 12:35