Object Name to Array

Get help using Construct 2

Post » Fri Jun 29, 2012 9:55 pm

How do i put the name of an object (in a family) that is clicked, into an array.

Intention is to change the object based on another corresponding object being clicked

1. Player clicks object "001"
2. Destroy object skin"&array1,1"
3. Array 1,1 set to objectName "001"
4. Create object skin"&array1,1"
B
6
S
3
G
1
Posts: 102
Reputation: 1,379

Post » Fri Jun 29, 2012 10:46 pm

This may not be the best way to go about doing this, if someone has a better way to achieve this function please share :)


so right now, it is seeming like the easiest way to do this is to do this
1. Card Clicked
2. Send Card animationName to array1,1
3. Set sprite animation to Array.At(1,1)&"Idle"

which would mean I would store all the different forms in one object... which means I could put make all the cards the same object also and try to set a random animation between certain values or something for the cards, so the same object drops for the player but it is a random animation... not sure if that random part is possible in C2 or not...Alexixiv2012-06-29 22:59:35
B
6
S
3
G
1
Posts: 102
Reputation: 1,379


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests