Choosing objects from variable name?

Get help using Construct 2

Post » Fri Aug 02, 2013 2:15 pm

Hey there,

I have the following problem:

I have the name of an object written as a text string in a variable. Depending on the text in the variable, e.g. "axe" or "stone" I want to pick the corresponding object and position it.

Problem is, I don't know how.. is that even possible?

Thanks in advance!
B
5
S
1
Posts: 29
Reputation: 333

Post » Fri Aug 02, 2013 2:41 pm

Check plugin forum for nickname plugin.
B
24
S
8
G
7
Posts: 756
Reputation: 7,242

Post » Fri Aug 02, 2013 3:56 pm

Somebody asked a similar question yesterday. I provided a quick sample with nickname.
link
ImageImageImage
B
71
S
19
G
180
Posts: 3,479
Reputation: 103,179

Post » Fri Aug 02, 2013 6:10 pm

nickname it is, just remember you need to load a layout with your objects on it before spawning these objects in a layout
B
38
S
8
G
3
Posts: 439
Reputation: 6,876


Return to How do I....?

Who is online

Users browsing this forum: JoshVillaluz, OddConfection, TheGreatAdam12 and 13 guests