Answers for "godot add sprite"

Go
1

godot sprite tiling

Using A TextureRect

    Create a TextureRect-node
    Assign your image as its texture
    Set expand to true
    Set strech_mode to STRETCH_TILE / 2
    Set rect_size to the dimensions you wish for

Using A Sprite

    Select your image in the "FileSystem"-Tab
    Switch over to the "Import"-Tab (next to the "Scene"-Tab)
    Set "Repeat" to "Enabled" and click "Reimport" (at the bottom)
    Create a Sprite-node
    Assign your image as its texture
    Set region_enabled to true
    Set region_rect to the dimensions you wish for
Posted by: Guest on July-30-2020
0

how to make a sprite appear godot

func _input(event):
    if event.is_action_pressed("goto.butt"):
        $Butterfly.visible = not $Butterfly.visible
Posted by: Guest on March-11-2021

Browse Popular Code Answers by Language