Show tower range. Any method?

Get help using Construct 2

Post » Sun Jul 30, 2017 1:14 pm

My tower range is 250. How can I show this? Circle or something? I know I can pin sprite but don't know what is real range in game.
B
10
S
4
G
2
Posts: 183
Reputation: 2,354

Post » Sun Jul 30, 2017 1:19 pm

Range is showed in pixels so 250 is 250 pixels of range, you can pin an empty dotted circle with 250 diameter on the 0 image point of the tower to show range.

You can also make it invisible or deleted on start, and make it like when player presses a button or a key to show the circle, you can toggle it visible/invisible, or use spawn new object on tower to show it, and destroy object to hide it.
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,367

Post » Sun Jul 30, 2017 4:37 pm

imhotep22 wrote:Range is showed in pixels so 250 is 250 pixels of range, you can pin an empty dotted circle with 250 diameter on the 0 image point of the tower to show range.

You can also make it invisible or deleted on start, and make it like when player presses a button or a key to show the circle, you can toggle it visible/invisible, or use spawn new object on tower to show it, and destroy object to hide it.

@imhotep22
Thanks. I chosed spawn object when touch and it's ok. But this idea about 250 px doesn't work. I made 300 px circle for 250 range and real range is bigger (about 350 I think)
B
10
S
4
G
2
Posts: 183
Reputation: 2,354

Post » Sun Jul 30, 2017 4:46 pm

How large is the image you are using? i forgot to mention that sorry, try making the circle size to range + image radius.

Example 250px range, image diameter 100, circle size will be 250+100/2 or 300. If this does not work try tweaking the number until its right, also you should note that if the size of the towers are different this will need tweaking even more, using as close to circular towers will work best. This is because the range 250px starts soon as the image ends, but the circle we are drawing starts from the center of the image so the range looks bigger then the circle itself.
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,367


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, MadSpy, MaxxMunnn, Uk4dee and 23 guests