Circle object

This forum is currently in read-only mode.
0 favourites
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • I would like to make a quick feature request. You know the Box object in Construct? I was wondering if you could possibly add a Circle object as well.

    I was trying to make an RTS and one thing I was trying to do was make a green circle showing the attack radius of a bomb/nuke type attack. An object that can draw a circle (like how the box tool draws a box) would work wonders for this kind of situation, but as of right now, it doesn't exist.

  • I think Ash stated at some point there would be some additional 3D objects added... it's probably not going to be any time really soon though unfortunately.

  • No, no, no. I'm talking about the box object, NOT the 3D Box object. I need to an object that can draw a circle like the Box object draws a square.

    If you're still confused, here:

    <img src="http://img134.imageshack.us/img134/7492/thislu7.jpg">

    <img src="http://img210.imageshack.us/img210/2121/this2ut4.jpg">

    I'm talking about this.

    A circle version of that would be great for showing the attack radii of various weapons in an RTS game.

    It's a pretty simple feature request. It shouldn't be too hard or take too long to do and could easily be added within the next update or so.

  • No, no, no. I'm talking about the box object, NOT the 3D Box object. I need to an object that can draw a circle like the Box object draws a square.

    Oh my bad I misunderstood what you were talking about... Does the circle diameter need to be dynamic? If not you could simply make a sprite object which is the size you need it to be. If the "blast area" can be "upgraded" or something like that, then yeah, perhaps a circle object would be handy otherwise you would end up with blurry enlarged sprite objects.

  • I saw myself wanting this the other day for something, as well.. But for now, you could always just make a sprite in a huge picture, and scale it down as you see fit, that way it is pretty flexible. Of course that might take up a lot more memory, but I guess this could just be a temporary workaround for it.

  • I saw myself wanting this the other day for something, as well.. But for now, you could always just make a sprite in a huge picture, and scale it down as you see fit, that way it is pretty flexible. Of course that might take up a lot more memory, but I guess this could just be a temporary workaround for it.

    I guess it's that way it's "always been done" up until now... the way that TFG and MMF is so limited in terms of objects like this, you always had to improvise and this method is what I always used to use. As long as the circle diameter doesn't need to be changed then you don't even have to make it large and scale it down, you could just make it the size you need it and save that extra memory.

  • I tried that, it looked really ugly. The circle gets really blurry when scaled down and the results in general are not very pretty (quite an eyesore, in fact). Parts of the circle even begin to disappear as you scale the sprite down far enough.

    A circle object would provide much better results. It be A LOT better looking (due to being dynamically resizable), in addition to being much more efficient.

    Yes, I need to change the diameter, a lot. I would like weapons to be upgradeable in my RTS (according to what stat points the user upgrades them to). That is why I need a circle object that can draw (and redraw) itself correctly and dynamically like the box object does. Otherwise I would have just used a static sprite object instead.

  • Yes, I need to change the diameter, a lot. I would like weapons to be upgradeable in my RTS (according to what stat points the user upgrades them to). That is why I need a circle object that can draw (and redraw) itself correctly and dynamically like the box object does. Otherwise I would have just used a static sprite object instead.

    You heard the man Ashley

    *cracks whip*

    (please)

  • Added to todo list.

  • Will that work for the time being?

  • scirra.com/phpBB3/viewtopic.php

    Will that work for the time being?

    Dammit why do you always have to add cool stuff to download when I'm at work and can't because this computer sucks?!

    You are hereby forbidden to do that, you have to wait at least 8 hours from the time of this post to put cool stuff for downloads so I and only I can instantly check it out without having to wait until I get home... meanwhile pee'ing my pants in anticipa... oh see what you did now?

  • Wow, that's amazing. I guess there is a solution to everything, or at least a temporary one. Maybe I lack experience or I'm just not as creative when it comes to solving problems but I wish I could think of this type of stuff. I never thought of doing it that way before.

    This is really good though, although it is a bit event intensive, but still very good. I like how smooth it looks. I still think a circle object would be good though to simplify things and for efficiency but this might work. I have to try it out and see.

  • If it's event intensive, that's not saying much. Each and every one of the behaviors (movements, what are they called now?) is surely incredibly complex with laid out event-wise.

    That's why you might consider making this its own event sheet. There is little else more elegant than:

    Include event sheet: "Circle Object Behavior"

  • I see. Actually ignore what I just said, that was a dumb comment. This is actually really useful. Thanks. I think i still have a lot to learn. I don't know, I can never seem to think of things like this. I'm not sure why I can't ever figure out such awesome and innovative ways to do things. I guess I'm used to MMF and everything having some sort of extension to use for it.

    I guess from now on I should ask if something can be done before I ask if there is an extension that can do it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nothing said has been dumb. As you gain experience, you start learning tricks that just sorta "click." That little bit of math that makes the size smoothly transition? Learned that in high school. The "additive value rotation" I learned from Clickteam software (don't know why I didn't mention this method when we had that "change button color" thread). The use of layers to create a composite sprite is brand new, and something I learned offhand from one of Ashley's tutorials.

    When trying to do something outside the bounds of current objects and functions, it's not a 100% creative process. You don't dive in with a box of Wheaties and hope the answers just come to you. Most of your problem solving will likely be in a reverse order, starting with the idea of what you want something to do or look like in the end. Like this: I want a circle object with these features. How can I make the circle? How can I then give it a border? Maintaining that border, how can I animate it using only the math I understand? How can I make it as expandable as possible?

    Once you have your plan, then it's a matter of steps. From the bottom of your list on upward, you build your program until it resembles the thesis at the top of your list.

    This has been a longer reply than I intended. I think I've made my point, so I'll leave you to decide whether or not I'm full of myself.

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