Hello,
I'm thinking of the following thing:
We have a character that can interact with an item which generates other random items from a list.
The items generated are made with instance_create_layer.
When they touch the character they can get assigned either to its leftHand (variable) or its rightHand (variable) depending on which one is free.
The character also has the ability to combine them, and depending on which items are being held different results are possible.
All good until now.
Is there a way to check what instance are being assigned to leftHand/rightHand without having zillions of if statements?
something like
switch (leftHand + rightHand)
case x:
....
break
Also if there's a way to disregard the order that would be awesome (leftHand = oBat rightHand = oNails generate the same result as leftHand = oNails rightHand = oBat)
Hope this makes sense
Radu
I'm thinking of the following thing:
We have a character that can interact with an item which generates other random items from a list.
The items generated are made with instance_create_layer.
When they touch the character they can get assigned either to its leftHand (variable) or its rightHand (variable) depending on which one is free.
The character also has the ability to combine them, and depending on which items are being held different results are possible.
All good until now.
Is there a way to check what instance are being assigned to leftHand/rightHand without having zillions of if statements?
something like
switch (leftHand + rightHand)
case x:
....
break
Also if there's a way to disregard the order that would be awesome (leftHand = oBat rightHand = oNails generate the same result as leftHand = oNails rightHand = oBat)
Hope this makes sense
Radu
Last edited: