Snippets about godot

3 snippets

Back to all snippets

  1. SNP142

    Wait a second in GDScript

    Pause a function without blocking the game, the Godot 4 way.

    6 lines of gd in 3 blocks, 6 lines of explanation.

    #5B3 godot gamedev
  2. SNP088

    Pick a random element in GDScript

    Random loot, random lines, random enemies. Godot 4 has it built in.

    6 lines of gd in 2 blocks, 5 lines of explanation.

    #245 godot gamedev
  3. SNP055

    Pixel-perfect settings in Godot 4

    The project settings that keep pixel art sharp when the window is scaled.

    9 lines of ini in 1 block, 13 lines of explanation with 5 notes.