How do I pick another family while I already picked one?

Just started using Construct 2? Post your questions here

Post » Sat Jul 25, 2015 1:22 am

Hello I'm Greg and I'm still trying to get familiar with C2. My question is I don't know if it's possible to pick one family as a sub-event while the parent event has picked one. The is because I want to pick some sprite(s) according to the picked parent sprite's instance variable:

Image

I do that is because I want to allow user switch weapons, so that the bullets should be switched, too. However, according to the articles about picking I have seen, the SOL of sub-events would be restricted to what the parent selected, although I don't know whether that's the reason I did that fail (the picking Bullets didn't work). So I wonder if there is a better way to do that? Or I should change my whole pattern?
B
2
Posts: 2
Reputation: 154

Post » Sat Jul 25, 2015 1:55 am

You would do a "Pick all" to get the whole list again, and then your specific pick.
ImageImageImage
B
71
S
22
G
249
Posts: 3,762
Reputation: 138,575

Post » Tue Jul 28, 2015 3:17 pm

Could you elaborate more please? Since I tried to do that as an sub-event of the parent event, but it picked nothing:

Image

I removed the deeper sub-events of the picking all to clarify the case (they won't be triggered at all). I also tried to put the picking all as the top-most event. It works but the it's sub-events won't work.
B
2
Posts: 2
Reputation: 154

Post » Tue Jul 28, 2015 4:32 pm

I think you need to clarify what you want to do. If there are no bullets created, then you can't pick any, and that seems to be the case. Looks like you are confusing what UID will do for you. If you want a certain bullet type, you need to identify the type, not the UID (that I assume you are seeing in the GUI).
ImageImageImage
B
71
S
22
G
249
Posts: 3,762
Reputation: 138,575


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 4 guests