Adding a Settings System to My Game Using Databox | Castle Wars Devlog #2.1

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

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

  • @Duckamoly
    @Duckamoly Год назад +2

    Perfect timing, I was looking for you just a bit ago and then you popped up in my notifications :D

    • @weekie
      @weekie  Год назад +1

      ngl this comment made my day

  • @shaugrithshaugrith-kq3zs
    @shaugrithshaugrith-kq3zs Год назад +1

    hi i rlly like your game/content but could you tell me how you managed to split the screen horizontally and not vertically? i saw it in your last devlog so yeah

    • @weekie
      @weekie  Год назад +1

      Yes of course! I keep references to the cameras for each player, and set each camera.rect value to a smaller rectangle on the screen.
      For Example: with 4 players, P1's camera has rect (0.0, 0.5, 0.5, 0.5), P2 has rect (0.5, 0.5, 0.5, 0.5), P3 rect (0.0, 0.0, 0.5, 0.5), and P4 (0.5, 0.0, 0.5, 0.5).
      Each rect has parameters (xPos, yPos, width, height)
      Hopefully this helps!

    • @shaugrithshaugrith-kq3zs
      @shaugrithshaugrith-kq3zs Год назад +1

      @@weekie thx rlly much very needed might have to try it out for myself xD thx have a nice day