Send data from one layout to another?

Get help using Construct 2

Post » Wed Jun 19, 2013 7:50 pm

In my game, I need to be able to send data pertaining to your score (killcount, time, etc) from one layout (the level) to another (the scoreboard). Is there a way to pass a variable or array like this, or will I just have to use global variables for all of them?

Thanks!
B
8
S
1
Posts: 97
Reputation: 826

Post » Wed Jun 19, 2013 8:10 pm

I would just use global variables for things like score and time, but you could also make an object global by setting it in the properties to the left (if default setup) after selecting the object.

By the way, you can keep all the global variables in it's own event sheet if you have a lot of them, then include that event sheet wherever you need to use the variables.Nimtrix2013-06-19 20:12:03
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Wed Jun 19, 2013 10:24 pm

Well, I guess that works. Thanks!
B
8
S
1
Posts: 97
Reputation: 826


Return to How do I....?

Who is online

Users browsing this forum: Davlin, VulcanSpawnWolf and 1 guest