R89 Destroyed Sprite still counted & ForEach Wrong

Bugs will be moved here once resolved.

Post » Thu May 17, 2012 4:44 pm

Awesome! I found it really useful in CC, so thanks @Ashley!
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Thu May 17, 2012 4:52 pm

Um..
How will that work with On create, and on destroy?
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Thu May 17, 2012 4:56 pm

@newt - they won't be affected. The only thing is whether or not 'for each' still iterates it, and the object count, IIRC.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu May 17, 2012 7:55 pm

Ashley, you're the best !!

btw just wondering...

1. When you say "Top-level events" does it means :

[code]
Event 1
--Event 2
--Event 3
----Event 4
----Event 5
--Event 6
--Event 7
Event 8
Event 9
[/code]

If i destroy object at Event 4 does the change gonna be reflected on :
Event 5, 6, 7, 8, 9
OR only
Event 8, 9


2. Does the change also reflected on object IID ?
or object IID will stay the same until end of event sheet. (when object got destroyed for real)

So in the case of my circle example earlier:

Circle IID will be 0, 1, 2, 3
OR
it will stay as 0, 1, 4, 5 ? (until end of event sheet)


Thanks again Ashley.
B
34
S
13
G
8
Posts: 134
Reputation: 8,118

Post » Fri May 18, 2012 7:58 am

@Potato - it will be updated in event 8 since it's the next top-level event (as in, not a subevent to anything else). That's also when the IIDs are updated, because the object still actually exists until then.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Previous

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests