How do I create clickable world map?

Get help using Construct 2

Post » Thu Nov 06, 2014 10:35 pm

How do I create a clickable world map? When I click the transparent portions of a sprite, it still triggers the mouse event on left click. I see no easy way to avoid this.
B
9
S
3
G
1
Posts: 191
Reputation: 1,725

Post » Fri Nov 07, 2014 2:22 am

Assuming you just want to be able to select continents for this example, I would create invisible sprites over the individuals continents (or countries ) and set the click events to the to the individual invisible sprites.
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Fri Nov 07, 2014 5:05 am

Aren't sprites only square? As an example, can you create an invisible sprite in the shape of a triangle?
B
9
S
3
G
1
Posts: 191
Reputation: 1,725

Post » Fri Nov 07, 2014 5:10 am

You can add, delete and move around points of a sprite's collision mesh. I believe the tool for it is right under the imagepoint tool in the image editor. Making a triangle should be simple enough.
Be sure to check out my Metroidvania game, A Hole in the Earth
B
59
S
24
G
3
Posts: 359
Reputation: 5,683

Post » Fri Nov 07, 2014 5:53 am

Oohhh. Thanks.
B
9
S
3
G
1
Posts: 191
Reputation: 1,725



Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, David181, fens and 12 guests