Screen Wrap in 2 minutes! Godot Tutorial

Поделиться
HTML-код
  • Опубликовано: 10 окт 2024

Комментарии • 22

  • @afthendev
    @afthendev 2 года назад +17

    You can simplify it even further by using the posmodv() funtion. It takes in a Vector2 as a parameter and it will act as the looping point. It looks like this:
    position = position.posmodv(get_viewport_rect().size)
    This way, it's only one line of code.

    • @StevePixelFace
      @StevePixelFace  2 года назад +3

      Oh very cool, thanking you very much!

    • @vRV379
      @vRV379 Год назад

      I cant understand how to make it?

    • @afthendev
      @afthendev Год назад

      @@vRV379 you can try and check Godot's documentation for the syntax, and other helpful stuff

  • @HelperWesley
    @HelperWesley 2 года назад +2

    Cool stuff! 👍

  • @RockyMulletGamedev
    @RockyMulletGamedev 2 года назад +1

    Good stuff Steve !

  • @Ryland-tu6pj
    @Ryland-tu6pj 2 месяца назад

    yoy have to put the function in the loop btw

  • @Aarimous
    @Aarimous 2 года назад +1

    Nice one :)

  • @pixel_dave
    @pixel_dave 2 года назад +1

    Heyy nice video

  • @ОЛДЫ-ОбществоЛюбителейДоистори

    it works but how do I assign the borders of the teleportation walls?

  • @vRV379
    @vRV379 Год назад

    Get_viewport is not declared in currunt scope
    How slove it in godot4

  • @BHanif-zc2pr
    @BHanif-zc2pr 2 года назад

    Hi i want to record audio by my phone while there is sound and play when the sound is stop. Like talking tom. How can i

    • @StevePixelFace
      @StevePixelFace  2 года назад +1

      Good place to start would be the Godot docs they have a good section on recording audio with your microphone.

    • @BHanif-zc2pr
      @BHanif-zc2pr 2 года назад

      @@StevePixelFace no

    • @Mrtubagames
      @Mrtubagames 2 года назад +1

      @@BHanif-zc2pr yes

    • @BHanif-zc2pr
      @BHanif-zc2pr 2 года назад

      @@Mrtubagames can you tell me how can i?

    • @Mrtubagames
      @Mrtubagames 2 года назад

      @@BHanif-zc2pr By going to the Godot docs and reading up on the section on recording audio