Instances Between Layouts

Get help using Construct 2

Post » Tue Jun 10, 2014 12:51 pm

I have 2 rooms (2 layouts) with enemys in each, if I go between layouts everything
just resets and the enemys appear again, what should I be doing to remember the state of
which enemys have hit points and which are dead.

Any links etc would be great
B
6
S
1
Posts: 18
Reputation: 342

Post » Tue Jun 10, 2014 1:26 pm

Make the objects "Global" (on the Object type properties). See the following capx.
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Tue Jun 10, 2014 2:49 pm

Thanks, as I'm creating a random number of objects on start of the layout, would I need to set a global variable to check if they have already been created and if so not run through the loop
B
6
S
1
Posts: 18
Reputation: 342

Post » Fri Jun 13, 2014 7:32 pm

You only have to create your objects on the first layout. Use a separate event sheet on the second layout that won't have the creation event as the first one...
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, jatoblendy and 50 guests