Draw a Resizeable Circle?

This forum is currently in read-only mode.
From the Asset Store
You can change amount and speed of circles, length of lines and etc. Only 6 events.
  • Hi, maybe this was asked before.

    But, I need to draw a circle that wont get fuzzy/pixelated no matter what size. And it needs to VERY big so I can't prerender it and shrink it down.

    I thought I could do this with the canvas object, But I can't find it. And I remember in earlier builds of Construct a Circle.FX which might work.

    Any help?

  • if its an outline of a circle you want, you can use a canvas object, if you want a filled circle, your going to make some custom code with distort maps and stuff. how BIG does it have to be, and whats the intended use?

  • [quote:1mvhoz63]how BIG does it have to be?

    Um, that's the thing HUGE. And I mean huge big. Thousands of pixels across, If the player comp can handle it. (It is a settable preference in the game)

    [quote:1mvhoz63]and whats the intended use?

    An area of influence between objects so the player can monitor the strength.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • That kind of rules out canvas, it can only draw when its on screen.

    Plus it can take up a lot of ram.

    Does the player actually have to see the hole?

    If so you could apply the colored outline fx to a pre rendered sprite. It has an alpha setting that should help when you get a little "jaggy".

    If you don't need to see it, you could always go with distance(x1,y1,x2,y2).

    Where x1,y1 are the center of the object, and x2,y2 are the other objects.

  • If you can't get decent performance, you might want to do what starcraft 2 does with the range of siege tanks instead or as a fallback it it hits the framerate. I can't find a screenshot atm but it puts a ring of sprites around the range instead of a solid ring.

  • As is said, if you want only an outline, the canvas will work perfectly, you just need to use a loop and do a bit of trig, and the canvas can stay the same size on screen (full window) it doesn't need to be bigger

  • As is said, if you want only an outline, the canvas will work perfectly, you just need to use a loop and do a bit of trig, and the canvas can stay the same size on screen (full window) it doesn't need to be bigger

    Not sure what you mean. Are you talking about a portion of the circle?

    Here's this till someone figures out a trig version.

    http://dl.dropbox.com/u/666516/circle.cap

  • Do you want something like this?

    http://dl.dropbox.com/u/10316081/circle.cap

    You will need

    Disk Effect: tulamide

    Alpha Inverse effect: Made just for this

    http://dl.dropbox.com/u/10316081/Alpha%20Inverse.fx

  • Here is a cap with some additional ways to make a circle with the canvas object:

    1. Filled circle.

    2. Polyline circle. (the trig way)

    3. Graph of a circle.

    http://dl.dropbox.com/u/5426011/examples3/circle.cap made in 0.99.96.

  • Haha, now that's service.

    Question tho, is anyone else getting lines across the bottom of the filed circle?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)