Valid values for points to spawn objects at

For questions about using Classic.

Post » Tue Apr 07, 2009 11:47 am

I'm making a shoot-em-up at the moment, and I've run into some slight trouble with spawning projectiles. I want to launch two projectiles from separate points on the image. I've placed them on the object itself, but I can't see how to spawn the bullets there. Setting it to 1 spawns it from somewhere in the image, 2 to one of the points I made, and 3 to ...the same point.

Is there more information available on how this works?
B
1
G
3
Posts: 4
Reputation: 833

Post » Tue Apr 07, 2009 2:15 pm

Are you using image point index or name? Index is numeric index - 0 is the hotspot, etc. - while name is a string. If you named them like "1","2", be sure to enclose them in quotes.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Tue Apr 07, 2009 3:22 pm

Ah, that worked, thank you.

Turns out the real problem was actually in the hotspot of the bullet, and technically there wasn't really a problem at all :V

Thanks for the help.
B
1
G
3
Posts: 4
Reputation: 833


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests