Picking from Tiled Background Family Problem

Get help using Construct 2

Post » Sun Aug 04, 2013 1:50 am

Another picking problem.. not sure what is going on here. Did I overlook something silly? Any help would be really appreciated!

1) Have a family of tiled backgrounds with an instance variable.
2) Trying to pick one instance from the family using that variable.

C2 does not appear to find anything.. removing the picking will generate a random instance as expected.

Capx here: http://db.tt/NpmCyI5X

B
9
S
2
Posts: 58
Reputation: 1,416

Post » Sun Aug 04, 2013 5:41 pm

Nickname function doesn't appear to get around it either.. what am I doing wrong. :(

Capx: http://db.tt/zJmmkLAG
B
9
S
2
Posts: 58
Reputation: 1,416

Post » Sun Aug 04, 2013 7:04 pm

What you are doing has no sense. But I dont know what is the effect you want to acomplish. If you tell me what you want to happen I can do it and show you how I did it.
B
10
S
4
Posts: 133
Reputation: 1,543

Post » Sun Aug 04, 2013 7:11 pm

Both should work. Tested and your .capx worked as expected, the new objects are spawned at 0,0. Notice that you got 2 layouts, one with the objects that work (layout 2) and one that is empty (layout 1). Be sure to test in layout 2. :)
B
24
S
9
G
7
Posts: 756
Reputation: 7,292

Post » Sun Aug 04, 2013 7:30 pm

@vee41 Hahaha You are right, when I tried I didnt bother to check layout 2. There it does spawn the objects because the objects are already present in the layout, in layout 1 it cant work with those events.
B
10
S
4
Posts: 133
Reputation: 1,543

Post » Sun Aug 04, 2013 11:33 pm

Sorry, why can't it work with those events in Layout 1? Objects have to be present in a layout to spawn them? I thought they just needed to be somewhere in the project? Sprites work like that pretty sure..

Trying to dynamically call tiled backgrounds for different environments that the player can walk into.
B
9
S
2
Posts: 58
Reputation: 1,416

Post » Sun Aug 04, 2013 11:34 pm

*Edit to do this without having all the backgrounds in the layout because there would be a ton of backgrounds.
B
9
S
2
Posts: 58
Reputation: 1,416


Return to How do I....?

Who is online

Users browsing this forum: Benjo11, dzert14 and 3 guests