Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / 2D splitscreen?

Author
Message
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 12th Sep 2017 20:09
Hellow peeps! Are any of you doing 2D splitscreen? What tricks do you use for that?
13/0
Supertino
6
Years of Service
User Offline
Joined: 22nd Jun 2017
Location: Behind you!
Posted: 13th Sep 2017 08:34
Never tackled that before but I'd probably start experimenting with viewports and scissors, I have always wanted to create an Extreme Violence game, maybe I will after my current project is done.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 13th Sep 2017 09:50
I haven't done it but I would consider SetRenderToImage(), and applying the image to a sprite. 2 Sprites with render images can then be placed side by side.

The more challenging part will be if you want to interact with objects on screen, you will have to map your pointer coordinates back to the area of the screen that the rendering is coming from.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 13th Sep 2017 10:47
Thank you guys! Got something good to go with now
13/0

Login to post a reply

Server time is: 2024-04-18 07:36:06
Your offset time is: 2024-04-18 07:36:06