How do I Spawn an object using string

Get help using Construct 2

Post » Sun Mar 23, 2014 9:38 pm

I'm trying for several hours to drop the itens from my inventory using his name stored in my array. Since I destroy the object and set slot's animations to respective object that I have stored, now I need to respawn this object back to the world. And that's the problem that is giving me headaches. Just can't find a way to solve it.

I'm trying to respawn the object back to the world using retrieved value from my array, which is the name of the object. But the only tools that C2 has for spawning objects is selecting the object. And I need to do it generally, so I dont need to bother with singles objects, since it will have several in the game so I can't use actions for especfics objects/itens.

Please, someone could help me?
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Sun Mar 23, 2014 9:47 pm

B
20
S
6
G
4
Posts: 347
Reputation: 4,451

Post » Sun Mar 23, 2014 10:08 pm

cvp wrote:Have a look at the nickname plugin:

plugin-nickname-behavior-nickname_t74522?&hilit=nickname


Thanks, cvp! I'm going to test it.

Edit: So, on start of layout, I need to assign the nicknames to every item that I have in the game and it's done. I don't need to do it again in another layout, right?
Edit: So far, it's working perfectly. Thanks, man.
B
56
S
21
G
3
Posts: 602
Reputation: 6,612


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 20 guests