How do I "Click only 1 item"

Get help using Construct 2

Post » Thu Nov 20, 2014 4:50 pm

hi :) i have next little problem
when i clicked my items when are 1 under 1 (like on image) i collect all items (and in inventory this is only 1 item but disappear all ;c)
i want to 1 click 1 item disappear
You do not have the required permissions to view the files attached to this post.
B
6
S
2
G
1
Posts: 32
Reputation: 589

Post » Thu Nov 20, 2014 4:58 pm

Can you provide your .capx to see your inventory system ?
Basically, you just have to do :
on [item] clicked -> [item] destroy
But I guess your issue is a little bit more complicated. :D
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Thu Nov 20, 2014 5:06 pm

:D yeaa i have click >>> destroy
You do not have the required permissions to view the files attached to this post.
B
6
S
2
G
1
Posts: 32
Reputation: 589

Post » Thu Nov 20, 2014 6:26 pm

First create a "Family" of "Inventories". Add all inventories in it. Then You need to have these two conditions:

Inventories.On Click
Inventories.Pick top instance

Then Inventories.Destroy.

It means that it will check which Sprite (among all inventories) is on TOP and select only the top most inventory only.
B
10
S
2
Posts: 109
Reputation: 982

Post » Thu Nov 20, 2014 6:44 pm

:D great !! you help me so much
thx <3
B
6
S
2
G
1
Posts: 32
Reputation: 589


Return to How do I....?

Who is online

Users browsing this forum: 25games, jatin1726, kiki4construct and 33 guests