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
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!
Perfect timing, I was looking for you just a bit ago and then you popped up in my notifications :D
ngl this comment made my day
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
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!
@@weekie thx rlly much very needed might have to try it out for myself xD thx have a nice day