UID not picked

Get help using Construct 2

Post » Fri Apr 12, 2013 11:16 am

Because the sprites are overlapping in the wrong order I need to select each one of them.
This test does not work. The sprites are unaffected...

B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Fri Apr 12, 2013 12:01 pm

@Schoening - I think it has to do with this:
http://www.scirra.com/forum/r102-breaking-change-questions_topic56576_post352637.html#352637

Essentially, newly created instances cannot be picked until the next top-level event. You could put your sorting loops in a function, and beneath the action "Move to bottom of layer", add "Wait (0)" and then a call to the function - that would probably fix it. Can't test it right now, unfortunately...


edit/ If you're trying to adjust z-order, could you not just build the tiles from the top down? That should create them in the proper order. Or maybe I'm completely misunderstanding...rogueNoodle2013-04-12 12:08:23
B
9
S
3
G
4
Posts: 63
Reputation: 3,083

Post » Fri Apr 12, 2013 12:26 pm

Cheers, Ill try that out in the morning.

I might be able to reverse it.
It's going to get information from my Server. And i don't want the server grid to be "mirrored".
At the start of the layout the server sends the entire 2D grid to the player.

I think I can solve this by sending the 2D grid in reverse. That way it would be spawned in the right overlap order.

Assuming the UID value is set at that point
B
40
S
11
G
4
Posts: 665
Reputation: 8,403


Return to How do I....?

Who is online

Users browsing this forum: amarcelo, Draconinho, LeFuji, plinkie, totoe and 20 guests