i know this has been asked a lot before but i dont know the answer but since it has been asked a lot before i HOPE i'll get an answer
so how do i do two player split screen with a scrolling background? i am using TGF 2 newgrounds edition so I don't think there are any fancy plug ins to help me but I think it can probably be done with LAYERS.
yours thoughts?
if you don't really know a solution let's just talk about it and discuss so maybe we can come up with something. k thx
Originally Posted by Silveraura Does TGF2 have Sub-application objects?
the sub clip application was the only solution i could think of myself. now you should bear in mind I am using the newgrounds edition of TGF 2 to build an SWF file so it is impossible to have sub apps.
Sub-apps aren't reliable anyway for an accurate 2-player experience. If you store players X/Y position, animation frame and direction data in Global Values across two cloned frames, there is a delay as the data is transferred across the two sub-app objects.
for a crude way of doing things could you not have your entire level repeated twice in the frame?
For example:
Layer1 is player 1 background
Layer2 is player 2 background
Layer3 is player 1 actives/platforms whatever
Layer4 is player 2 actives/platforms whatever
Now instead of having the playfield follow the player(s), make the controls directly influence the background layers.
I know it's not pretty but I assume it can be done this way
Does it absolutely have to be split screen? A nice alternative may be to zoom the game out so that the two players are always visible. When they become too tiny to see well, you fade a kind of circle over the top to show where they are.
Create your own custom level with both players and draw it two times?
One for player 1 and one for player 2?
However, that might require some computing power. Basically it's just one level database which then needs to be rendered two times on half screen width or height from two points of view.