Spawning instances of objects not in layout?

Discussion and feedback on Construct 2

Post » Sun Jan 22, 2012 4:51 pm

I was just wondering what is happening with the issue of not being able to spawn instances of objects that are not present in the layout.
It makes sense to be able to spawn any object in the project, and this feature would be a HUGE help for level editing.

Of course it probably is a technical problem that I have no experience with, but I was just wondering how that is going/if scirra intends to fix.

EDIT: It seems I just spawned an object not on the current layout...
Either Scirra fixed this under my nose or I an very ignorant ;)
Probably both ;)sqiddster2012-01-22 17:20:18
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun Jan 22, 2012 5:23 pm

I think, that kind of spanwing worke with previouse releases as well, but was nut offical "supported"....It think I have done it every once in a while and has some strange expriences with it
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sun Jan 22, 2012 5:56 pm

Yeah, I know for sure at one point I was getting errors whenever I did it... I wonder if it is still unsupported?

EDIT: ahh, it is all clear now. You only need one of each object type in ONE layout.
Too easy. Silly me for making a fuss ;)sqiddster2012-01-22 17:58:01
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun Jan 22, 2012 8:18 pm

Yeah, you just need at least one instance in any layout in the project so it knows what properties to use when creating it. Currently if there are no instances at all C2 doesn't know what to use for the object's properties, but I guess in future we could fix it to just use defaults. Just a bit of a tricky point in the engine right now.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Jan 22, 2012 10:39 pm

Yes, this does make sense. This is quite a nice revelation for me, actually ;)
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400


Return to Construct 2 General

Who is online

Users browsing this forum: Gianmichele, WhosWho and 8 guests