How do I Multiple Variables to another layout

Get help using Construct 2

Post » Thu Jun 04, 2015 5:42 pm

Hello all.

Been trying to figure this one out without success.

I have a couple planets on layout1, they have all multiple values set such as planetname, planetsize, planetpopulation etc. I have a planet information menu on layout5. Now, if mouse is over planet Earth I would like the planet info menu from layout5 to pop up, appending onto the texts on the menu such as Planet Name : planetname of mouse over etc, etc.

Or do you have to make multiple menu's unless you keep the menu in the same layout?
B
9
S
1
Posts: 56
Reputation: 576

Post » Thu Jun 04, 2015 5:46 pm

Try Global Variable.

Image
I'm a Magician, not a Developer.
B
21
S
8
G
25
Posts: 105
Reputation: 14,252

Post » Thu Jun 04, 2015 7:55 pm

Ya but was thinking if there was a way to send local variables to another layout such as C++ you can send local varibles to other functions etc.
Thank you for the reply XpMonster.
B
9
S
1
Posts: 56
Reputation: 576

Post » Thu Jun 04, 2015 8:01 pm

Did you tried "Include event sheet" then? Might help.
I'm a Magician, not a Developer.
B
21
S
8
G
25
Posts: 105
Reputation: 14,252

Post » Thu Jun 04, 2015 8:10 pm

You could use shared global variables using a dedicated event sheet for that, and include it in both layout 1 and 5 event sheet. Or use a global Dictionnary Object (they come set to global by default).
B
67
S
28
G
24
Posts: 970
Reputation: 18,675

Post » Fri Jun 05, 2015 1:05 pm

Will try the dictionary thx for info all and have a nice weekend :)
B
9
S
1
Posts: 56
Reputation: 576


Return to How do I....?

Who is online

Users browsing this forum: FlyingRam, jkmalau, marcinkowski and 10 guests