#Get Rotation Of Parent
9 messages · Page 1 of 1 (latest)
If you have a Node you should be able to call get_parent() to get the parent node. Does that work?
Then you should be able to just access the rotation or rotation_degrees property.
I called get_parent() but it said rotation was invalid inside the () and with a . after
Could you share a screenshot?
get_parent().rotation?
did you put the rotation inside he brackets?
that gives me the error message : Invalid get Index 'rotation' (on base: null instance) also rotation is not a autofill option.
Setting the rotation when spawning the bullet would be a better/more reliable method.
var Bullet = Scene.instance()
Bullet.rotation = self.rotation
get_parent().add_child(Bullet)