How do I spawn an object in another layout?

Get help using Construct 2

Post » Wed Jan 27, 2016 1:48 am

I'm making a game where I need a sprite to appear in another layout after the player does some actions. But I can't find an option to do that, I would love some help, thanks in advance. > :cry:
B
3
Posts: 4
Reputation: 183

Post » Wed Jan 27, 2016 3:53 am

Maybe set the object to global? That way if you have it in one layout, you can spawn it into another without it being there. RAM usage is the same though. It will load it in RAM if it's in global, no matter if it's on layout or not. Afaik.
B
37
S
6
G
1
Posts: 301
Reputation: 2,865

Post » Wed Jan 27, 2016 11:52 am

The basic way to do something like this would be to have a global variable, set it on the first layout and check the value of this global variable on start of the second layout..
If the condition is true create object.. (or if the condition is false destroy object, whichever suits you best..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Jan 27, 2016 12:06 pm

I will try this, and let you know how it goes, thanks!
B
3
Posts: 4
Reputation: 183


Return to How do I....?

Who is online

Users browsing this forum: namaewayukidesu, ultrafop, zenox98 and 13 guests