Flashlight With Battery - Godot 4.3 Tutorial

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 12

  • @MaksimkaTop4ik
    @MaksimkaTop4ik Місяць тому

    Hello! Please help me what to do if the flashlight only works when you hold the button and if the camera moves the flashlight turns off, what should I do?

    • @CrowGamesDev
      @CrowGamesDev  Місяць тому

      If you want to make it toggle on and off, you can make a new bool variable and change the if statements it would look something like this
      var toggle = false
      func input():
      if input.is_action_pressed("toggle") and toggle == false:
      toggle = true
      elif input.is_action_pressed("toggle") and toggle == true:
      toggle = false
      func process():
      if toggle == true:
      $spotlight.energy = 16
      else:
      $spotlight.energy = 0

    • @MaksimkaTop4ik
      @MaksimkaTop4ik Місяць тому

      @@CrowGamesDev And how many indents should be made in the line if input.is_action_pressed("toggle") and toggle == false: and elif input.is_action_pressed("toggle") and toggle == true:?

    • @CrowGamesDev
      @CrowGamesDev  Місяць тому +1

      @@MaksimkaTop4ik Just one

  • @LearmaDeveloma
    @LearmaDeveloma 4 місяці тому

    Hi 👋, could you please post a video about parallax windows or fake interiors?

    • @CrowGamesDev
      @CrowGamesDev  4 місяці тому

      I've heard of that, wasn't it a Spider-Man game that used that technique? I don't know much about it since I haven't ever used it sorry if I ever do ill make a video about it :)

    • @LearmaDeveloma
      @LearmaDeveloma 4 місяці тому

      @CrowGamesDev Yes, it was used in the Spider-Man 2 game. I think it helps to make the buildings look more realistic in games, thanks 🙏🙏🙏

  • @renatorossarola
    @renatorossarola 5 місяців тому

    awesome! Thanks

  • @BurgerParty
    @BurgerParty 4 місяці тому +1

    hello how about 2d ?

    • @CrowGamesDev
      @CrowGamesDev  4 місяці тому

      Check out a 2d flashlight tutorial, and the battery part should be similar.

  • @FaktaLain_YT
    @FaktaLain_YT 5 місяців тому

    Hai... saya dari Indonesia. Bisakah kamu membuat tutorial tentang bagaimana membuat kondisi seakan kita sedang berjalan di dalam hutan seperti di dalam permainan pertempuran.
    Terima kasih

  • @SuruthiMaha
    @SuruthiMaha 5 місяців тому

    Thanks ❤