How select a sprite/object with mouse

Get help using Construct 2

Post » Tue Feb 25, 2014 9:23 am

Hi

I have some sprites of the same type. For example i have a family with different cars.
The family has the behavior of pathfinding.
On the layout are some of these cars.
How can i select a car with the mouse and set them a new tartget for pathfinding.

Thanks

PS: Sorry for my english, isn't my mothertounge.
B
19
S
6
Posts: 23
Reputation: 1,341

Post » Tue Feb 25, 2014 9:43 am

Here is an example on how to pick an object clicked using its family, and how to use the pathfinding behavior to make it move on click.
I created a red sprite, the destination, to have somewhere for the car to go to.
B
17
S
8
G
4
Posts: 473
Reputation: 6,221

Post » Tue Feb 25, 2014 11:26 am

Thank you.
I'll try it.
B
19
S
6
Posts: 23
Reputation: 1,341


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 27 guests