Spawn objects by name

Discussion and feedback on Construct 2

Post » Sat Aug 25, 2012 3:01 pm

Hello!
How feasible would a "spawn by name" function be?
I'm creating a game in which you crossbreed plants, and I had my plants numbered "plant1" "plant2", etc. I was hoping that I could create a variable on the seed for the type of plant, and then when the plant grew, I could spawn "plant"(type).
But the way Construct 2 works, I have to actually select the spawned object by clicking it. Which means I have to create code for spawning just one plant, and then copy and edit that code 20-odd times, which is both inefficient and frustrating.
B
18
S
5
G
1
Posts: 95
Reputation: 2,661

Post » Sat Aug 25, 2012 6:49 pm

I think its feasible, and useful.
But there are workarounds so it isn't especially necessary.
B
36
S
10
G
6
Posts: 948
Reputation: 11,101


Return to Construct 2 General

Who is online

Users browsing this forum: TheRealDannyyy, Zonacas and 13 guests