Layout in layout?

For questions about using Classic.

Post » Mon Feb 16, 2009 9:33 pm

[quote="procrastinator":32rigu6m]Globals don't work? Or are they just per layout then? hmm

What about creating a new event sheet with variables that'll store the info you're trying to pass and including that sheet in both layouts' events. Then just update in one layout and read the info in the other. I'm pretty sure there's a better way... not even sure if that would work but logically... it should ;) Might be a pain if you have craploads of variables you need passing from one to the other..[/quote:32rigu6m]

That could work quite well i reckon.
Global variables are useful but what if i want to share more than just a few variables, would be easier to share an event sheet, didn't think of that :D
B
3
S
2
G
5
Posts: 301
Reputation: 2,302

Post » Tue Feb 17, 2009 2:50 pm

hmmm good point! I didn't think of it being a more flexible approach actually :)
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Wed Feb 18, 2009 1:04 pm

Global variables, global array object, etc are your best bets.

The function object should also work if made global.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests