Godot Door and Lever Tutorial
Matinator
In this video we will make a door that can be opened using a lever.
turn_lever function:
func turn_lever(direction: int) : if facing == direction: return
facing = direction emit_signal("lever_turned") if facing == 1: sprite.texture = TEXTURES.right else: sprite.texture = TEXTURES.left
Thanks to o_lobster for the art: https://o_lobster.itch.io/platformmetroidvania-pixel-art-asset-pack Code: https://github.com/MateuSai/Diarreo-Adventures ... https://www.youtube.com/watch?v=QS84dyI3irM
2022-01-28
0.0 LBC
Copyrighted (contact publisher)
21406145 Bytes