Controlling a single spawned object

For questions about using Classic.

Post » Sat Jan 23, 2010 6:51 pm

So I'm making a game where it spawns random obstacles towards you and you have to pretty much dodge it. I'm trying to make it so that when your character gets too close to a certain obstacle (birds), then that obstacle will move towards you. Currently, it makes all the birds move towards you, but I only wanted that one. Any ideas? Here's a look at the game so far (with stand in sprites).

[url:3svzzzt9]http://dl.dropbox.com/u/4055367/repulsion.cap[/url:3svzzzt9]
B
2
G
2
Posts: 17
Reputation: 684

Post » Sun Jan 24, 2010 12:33 am

It seems to work if you put the "bird_area" into container with "bird". You can also remove the event that spawns "bird_area", since it already gets created with "bird".
B
2
S
1
G
4
Posts: 71
Reputation: 1,342

Post » Sun Jan 24, 2010 4:10 am

[quote="Porlo":3fnk3q0f]It seems to work if you put the "bird_area" into container with "bird". You can also remove the event that spawns "bird_area", since it already gets created with "bird".[/quote:3fnk3q0f]

Yep, this works.

Containers are something that you should learn the function of.
B
3
G
3
Posts: 46
Reputation: 967

Post » Mon Jan 25, 2010 2:40 am

Sweet, that worked out perfectly. Thanks! I've never used families or containers before. Time to look up some tutorials on them.
B
2
G
2
Posts: 17
Reputation: 684


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests