Can I access objects by name?

Get help using Construct 2

Post » Fri Dec 26, 2014 6:29 am

I need to spawn a weapon at the player's feet as if it was dropped, and since I'm going to have quite a few weapons I'd like to have the weapon name stored as a variable in the player then in code just say;
Spawn Player.Weapon at Player.ImagePointX etc, etc,

But objects can only be chosen by a drop down menu. Does anyone know of a work around for this, or some other way to set up this system?
B
5
S
1
Posts: 59
Reputation: 497

Post » Fri Dec 26, 2014 7:46 am

You might try this 3rd plugin.
B
110
S
28
G
280
Posts: 4,487
Reputation: 156,566

Post » Sat Dec 27, 2014 12:14 am

Thank you! It was exactly what I needed
B
5
S
1
Posts: 59
Reputation: 497


Return to How do I....?

Who is online

Users browsing this forum: irina and 6 guests