The Daily Click ::. Forums ::. Klik Coding Help ::. I need help with drawing a circle
 

Post Reply  Post Oekaki 
 

Posted By Message

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
10th March, 2007 at 10:35:46 -

I making a tbs

When a unit is selected, it should show his firing range.
Range in pixels is in alterable values.
Can someone help me how to draw a circle around a unit showing his range.
And then resize the circle when showing someone elses range

active picture object is screwed every time it is resized. so i cannot use that.
And the circle should be only one object.
I tried a lot of objects and i m unable to do it


Image Edited by the Author.

 
Code me a sausage!

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
10th March, 2007 at 10:53:54 -

The overlay object would work nicely, there is a drawcircle function

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
10th March, 2007 at 10:55:34 -

Overlay/Active Overlay, perhaps?

"active picture object is screwed every time it is resized"

Screwed? How?

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
10th March, 2007 at 10:56:37 -

What s an overlay object i dont have it.

I m using mmf2

active picture object is screwed every time it is resized"

Screwed? How?

It is resized fast then the lines are too big when its bigger.
If it resamples then they change to big or small depending how i changed

It should be pixel precise circle if u know what i mean.

Image Edited by the Author.

 
Code me a sausage!

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
10th March, 2007 at 11:04:06 -

Ok, thx for help.

I found object.
Quick backdrop object.

But it doesn't show up in event editor!!!

Image Edited by the Author.

 
Code me a sausage!

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
10th March, 2007 at 12:27:26 -

Quick Backdrop? Who told you it could draw circles? Quick Backdrop doesn't show up in the event editor because it doesn't have any actions or conditions. You use it to create different kinds of simple backdrop objects.

Instead, use the Overlay object. It can draw many kinds of geometric shapes, including circles. Download the Overlay Redux object from www.extensions.co.nr, and copy the .mfx file into your /extensions/ and /data/runtime/ directories.

Image Edited by the Author.

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
10th March, 2007 at 13:14:26 -

I downloaded and tried overlay flux.
It has a bug, it only shows within first 1024x768 of the screnn. more or less.

And i have 1024.700 resolution and the map is 5000x5000

As soon as i scroll the screen to the right or down it dissapears



Image Edited by the Author.

 
Code me a sausage!

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
10th March, 2007 at 13:46:52 -

Okay, the easiest way to do it is to take an oatmeal container and a pen, and flip the container upside down onto a piece of white paper. Then, use your pen to trace around the outside of the edges. You can then even use a smaller container like a Coke can to make a smaller circle right above it. Then draw some dots on the top circle. Voila! Instant snowman!

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
10th March, 2007 at 13:50:26 -

It's not a bug -_-'

I'm pretty sure there was some way to make the Overlay follow the screen while scrolling...

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
10th March, 2007 at 13:54:46 -

I hope there is

And there is,hehe.
thx.

Image Edited by the Author.

 
Code me a sausage!
   

Post Reply



 



Advertisement

Worth A Click