Weird IID and UID

Get help using Construct 2

Post » Mon Feb 25, 2013 9:11 am

I created a block for one time creation of sprites. I try to compare IID's in that block. But every IID and UID look like the same in the block

Here is the capx
http://dl.dropbox.com/u/70704903/ForumQuestions/02/problem.capx
B
20
S
8
G
6
Posts: 176
Reputation: 8,047

Post » Tue Feb 26, 2013 2:51 am

I believe you are seeing an expected behaviour, in that, newly created objects can't be fully addressed until the next top-level event. You've already got the solution in the "This work correctly" event. Just add the same zaman condition, and move your zaman=1 to the second event so they both run just once.

Keep in mind that IIDs and UIDs are not fixed. They can change as objects are created/deleted. Use some other means to address them explicitly.
ImageImageImage
B
67
S
19
G
124
Posts: 3,215
Reputation: 74,417

Post » Tue Feb 26, 2013 4:18 am

I just recently gave up on IIDs and UIDs myself. As several others have suggested in other places, I have just created my own ID instance variable and manually assign them to my objects. It's probably not the best solution, but it does ensure that they don't change on me.
B
14
S
1
Posts: 10
Reputation: 1,375


Return to How do I....?

Who is online

Users browsing this forum: PixelatedTrip, Yahoo [Bot] and 0 guests