Rotation Code not Working

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

I wrote the tutorial code written in “creating you first script” in godot engine design philosophy . In the web , it shows godot icon rotation on the canvas . I did the same , but the icon of godot is there and it is not rotating.I didn’t even get a typo or syntax error while writing GDscript script that makes rotate .Here is the code :-

extends Sprite

var speed = 400
var angular_speed = PI
func _process(delta):
   rotation += angular_speed * delta

Your code is working
Godot 3.4 stable

ramazan | 2022-03-24 08:26

Are you sure the above code is attached to the sprite you’re looking at in-game?

jgodfrey | 2022-03-24 16:29

Yes , it is the only sprite in the project .

Ishaan Prince | 2022-03-30 04:21

Hmm… This issue isn’t obvious to me here. I’d be happy to take a look at the project if it’s available online?

jgodfrey | 2022-03-30 13:48