Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

set_flip_h( false )

var Direction = "Left"

func ChangeDirection():
    if Direction == "Left":
        get_node( "Sprite" ).set_flip_h( false )
        Direction = "Right"
    elif Direction == "Right":
        get_node( "Sprite" ).set_flip_h( true )
        Direction = "Left"
Source by godotengine.org #
 
PREVIOUS NEXT
Tagged: #false
ADD COMMENT
Topic
Name
8+9 =