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
21
S
8
G
6
Posts: 177
Reputation: 8,094

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
71
S
19
G
165
Posts: 3,425
Reputation: 95,561

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: SKYNET96 and 13 guests