Tower Range Circle

Get help using Construct 2

Post » Sun Aug 25, 2013 2:04 pm

Hi friends,

I am trying to make a tower defence game. I want to make a circle around a tower which shows the range of the tower and i want it to be shown for each tower, for the same kind of towers. I could'nt figure out how to do.

Waiting for your helps. :)

Here is the capx link:
https://www.dropbox.com/s/k7yus1pa5hrgsgy/example_fixed%20%281%29.capx
B
7
Posts: 17
Reputation: 403

Post » Sun Aug 25, 2013 5:28 pm

Hi!
A updated your capx with a range display. Here it is Fixed Example - Range

Instructions:
You should make a sprite with a circle shape. Then put it on the game, outside the layout, on touch set position to touched object, send it to the back, and you could set the size to the tower range (so if you have different towers, it will show an accurate range). What I also did;
I split the layout in two layers: BG and Game.
This is mainly a way to easily place things using Z order without complicating it too much. I created an empty 'BG' sprite, and the circle sprite called 'range'.

Here are the events that place the range:



And here the ones that puts everything back:

B
15
S
6
G
3
Posts: 35
Reputation: 3,982

Post » Sun Aug 25, 2013 6:06 pm

@lukedirago

Thanks for the explanation and updating capx. You helped a lot.
B
7
Posts: 17
Reputation: 403


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Darth Crusher, part12studios and 6 guests