How do I find the first instance of an object

Get help using Construct 2

Post » Sat Sep 24, 2016 2:33 pm

Hello, how do I find the first instance of an object on the stage, in the case already have 30 Levels ... do not know where I put the first instance it ... :|
Amilton Neves do Brasil. Criando jogos des de 1999.
B
32
S
8
G
6
Posts: 226
Reputation: 8,777

Post » Sat Sep 24, 2016 6:39 pm

There isn't really a 'first instance' until you run the game. Then the objects are listed in order of IID in each layout. What is it that you are trying to do?
B
46
S
16
G
77
Posts: 2,155
Reputation: 45,823

Post » Sat Sep 24, 2016 7:13 pm

You mean the instance that has the defaults for newly created instances?

If you save you capx as a project folder and look in the xml files in the layouts folder then look at all the lines with say
<instance type="TiledBackground" uid="0">
The one with the lowest uid is the first I think. You probably want to use some searching software like agent ransack to automate the searching.
B
92
S
32
G
109
Posts: 5,290
Reputation: 70,991

Post » Sat Sep 24, 2016 7:59 pm

R0J0hound wrote:You mean the instance that has the defaults for newly created instances?

If you save you capx as a project folder and look in the xml files in the layouts folder then look at all the lines with say
<instance type="TiledBackground" uid="0">
The one with the lowest uid is the first I think. You probably want to use some searching software like agent ransack to automate the searching.

Exactly... Thank...
Amilton Neves do Brasil. Criando jogos des de 1999.
B
32
S
8
G
6
Posts: 226
Reputation: 8,777


Return to How do I....?

Who is online

Users browsing this forum: OddConfection, ST314, Yahoo [Bot], zenox98 and 31 guests