Some Help with array XY

Get help using Construct 2

Post » Sat Apr 09, 2016 10:48 am

Message: ElChuchis can only post plain text URLS until they have 500 rep. 3 URLS modified. Why?
Hello guys! I made an inventory X and all works well, but nowadays I am working in a XY inventory but these dosnt works well because when i collision with the object for pick up, the frame of the slot don't change to the frame of the item. (srry about my english)

There some photos:

Array on sheet:

https://gyazo.com/95ead28a0236e8dc9f78c486f5b94a99

Array propertys:

https://gyazo.com/1dd3cb91ae2ca6fa1651bf59513ac66d

Gift working:

https://gyazo.com/0f061bc3f46205eece7325eb580ecfd0

TY ALL!
B
14
S
6
Posts: 63
Reputation: 1,236

Post » Sat Apr 09, 2016 1:33 pm

You are checking the Position against the data. a) the position is two numbers, not one: X,Y
b) with an X & Y already, you don't have to search the array, just index it directly: Inventory_Array.At(Inv_Slot.PositionX, Inv_Slot.PositionY) = 0 ...
ImageImageImage
B
71
S
22
G
248
Posts: 3,758
Reputation: 138,067

Post » Sat Apr 09, 2016 11:43 pm

Thanks you BlackHornet but I already changed my inventory type to one more simply and easy to do. So Thanks youu Black I ll have present it!!!
B
14
S
6
Posts: 63
Reputation: 1,236


Return to How do I....?

Who is online

Users browsing this forum: newt and 17 guests