Sprite Instances of Instances

Get help using Construct 2

Post » Thu May 30, 2013 7:38 pm

I'm not sure if this is possible.

I have created a race car AI which has 2 main sprites with multiple instances of each sprite as sensors so the car knows when to turn.
www.dataresearch.netii.net/AI

This is working fine but I now want to create multiple cars to race.
The problem I have is I want to create another copy of the car and all of the sensor instances without having to create brand new sprites.
Each Instance has a different instance variable set so the car know how much to turn if that sensor hits a wall.

I have tried to create a container for this but that creates a new car for every instance of the sensor sprites so I end up with 6 cars driving uncontrollably.
B
3
Posts: 8
Reputation: 241

Post » Thu May 30, 2013 7:50 pm

I'd do it with a container. Just don't create (in editor or in game) any sensor instances, as they will be created automagically.

Just pin the sensors to a car at 'on created' event and you should be good to go.
B
24
S
9
G
7
Posts: 756
Reputation: 7,292


Return to How do I....?

Who is online

Users browsing this forum: marcoscodas, raulcg1981, Yahoo [Bot] and 11 guests