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
2
Posts: 29
Reputation: 483

Post » Fri Aug 02, 2013 2:41 pm

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

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
21
G
203
Posts: 3,584
Reputation: 115,072

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: angryvel760, chrislechat, eryson27, ismael123 and 1 guest