The Daily Click ::. Forums ::. Klik Coding Help ::. Split scrolling
 

Post Reply  Post Oekaki 
 

Posted By Message

norfair



Registered
  31/10/2002
Points
  244
21st September, 2005 at 14:50:37 -

greetings.
Now I have to do a split/scrolling: different points of view of the same map in the same time in the screen, a la commandos.

I tried to using sub-applications.
I made 2 sub-application objects, displaying both another same frame of the same application.

The problem is that there isnt any relaction between them: if I move or destry an object in one, nothing happens in the other one.

How I can make them work properly, withut using global values, inis or datastores for every thing that happens?

If not, is there any other way to make a split-scrolling?

Image Edited by the Author.

 
Radix says:
It's regrettable that TDC is the arsehole of the click scene, but somewhere has to be.

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
21st September, 2005 at 15:01:10 -

1. Make sure the global values in both subapps are shared.
2. In both subapp frames, store the player's x and y value in global variables (like, name some global values player1x player1y and player2x player2y and let 'em store).
3. In the other subapp frames, make the other player position at the global value.

Tadaa. Now try something similar with the bullets / objects...

 
Old member (~2004-2007).

norfair



Registered
  31/10/2002
Points
  244
21st September, 2005 at 15:44:03 -

holy shit, there isnt another way to do?

I would avoid using values for hundreds of things, as possible.

 
Radix says:
It's regrettable that TDC is the arsehole of the click scene, but somewhere has to be.

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  48487

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
21st September, 2005 at 17:18:07 -

Well you could use arrays and things, and use the File Object to delete the array afterwards.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click