The Daily Click ::. Forums ::. Klik Coding Help ::. Arrays between subapps
 

Post Reply  Post Oekaki 
 

Posted By Message

waffleton



Registered
  20/04/2007
Points
  794
27th May, 2007 at 10:18:29 -

Bleh, so i admit; im awfully stupid when it comes to MMF 2, and need your awesome help.

Could someone just make a quick example of how you use the same array between a frame and a subapp?
(Without saving it externally, duh) >_>; Yeah, im trying to display a map over the game using a subapplication,
but how the heck do you get the same array to work in a subapp?

Feel free to laugh at my n00biness

 
n/a

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
28th May, 2007 at 04:31:45 -

Make it a global array? Click on it and there's a check box for that.

I think that might work. Others might correct/add to this.

 
Image
http://bfollington.tumblr.com

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
28th May, 2007 at 04:47:45 -

Other than saving/loading every few seconds, a global array is probably best.

Not sure if they work the same way as global values between sub apps though.

 
My signature is never too big!!!

waffleton



Registered
  20/04/2007
Points
  794
28th May, 2007 at 05:10:56 -

Sorry ^^; i really dont know how to exactly make it work with a global array

Could someone make a really quick example? Please >w<

 
n/a

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!
28th May, 2007 at 06:43:57 -

When you have a global array, it means all data in the array is detained (?). So no matter where you go in the app, if the frames have the same global array object, they contain the same data over frames. Just re-initialize the events that use the array each frame (level).

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click