📜  set_flip_h( false ) - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:17.627000             🧑  作者: Mango

代码示例1
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"