Identifying an object inside two families

Get help using Construct 2

Post » Sat Nov 21, 2015 5:19 pm

@LittleStain Interesting... Without the for each, pickedcount shows the number of ships shooting (<1) and with the for each pcikedcount only shows 1, but still the one with the smallest UID is picked. Still having a very vague idea of why all of this happens!
B
9
S
3
Posts: 149
Reputation: 1,262

Post » Sat Nov 21, 2015 6:09 pm

So at least the for each is working as intended..
The problem seems to be in the function, somehow the picking doesn't work as expected..

Could you unfold everything inside the function?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Nov 22, 2015 12:58 pm

@LittleStain Here they are. I would upload the .capx, but really this is all there is to it!
Image
Image
Last edited by CloveltOc on Wed Dec 02, 2015 3:35 pm, edited 1 time in total.
B
9
S
3
Posts: 149
Reputation: 1,262

Post » Wed Nov 25, 2015 6:20 am

I usually just use a variable to save my UID. Is there a reason why you are using a function to store it instead? Try running your game on debug, and look at the UID you stored. Is it correctly updating or is it staying at the same number?

Just a tip, but when replying add a @ + their nick (eg @rekjl), that way we will get a notification that you replied on the post.
B
36
S
17
G
30
Posts: 679
Reputation: 19,254

Previous

Return to How do I....?

Who is online

Users browsing this forum: menos30, Moordhuis, RetroSpock, TRMG and 4 guests