Show/Hide an image over and over in GODOT

Поділитися
Вставка
  • Опубліковано 8 чер 2024
  • Hello everyone!
    Here is a tutorial on how to show/hide an image over and over, by pressing a button :D
    Tips:
    - The line of code is: sprite_2d.visible = not sprite_2d.visible
    - To create the line: @onready var sprite_2d = $Sprite2D
    hold and drag the sprite2d into the script and then press the ctrl button and release!
    - To start up the scene, press F6!
    If you have any questions let me know, although I am new to Godot and just discovered this, I'll try my best to help!
    Here's a link to my Instagram that keeps updates for my game Mystic Watcher if you are interested!
    starspellst...
    Have a great day!

КОМЕНТАРІ • 2