YetAnotherSuperhero's Forum Posts

  • If I made a container w/ a "Ship" and "engine Graphics" sprites, BUT the amount of engine graphics sprites is unknown, how would I do that?

    So, I might need to make a ship with 2 engine graphics and another with 4.

  • Since C2 uses Javascript, would it be a good idea/possible to learn Javascript to write plugins for this?

  • Awesome! Thanks everybody!

  • No,

    from the page:

    ^ Raise to power 8 ^ 2 (= 64)

    I have the 8 and the 64, I need to be able to find out the 2

    Thanks though.

  • Hey, how do I find the power of something?

    I have a base number, let's say it's 10 and 10 to the power of 2 is 100.

    How could I have the sum (100) and the base (10) and get 2?

    or 4 to the power of 3 = 64

    So I'd have 4 and 64 and get 3?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It seems like when I use the "Repeat" action and try to get the index with "LoopIndex" it doesn't return anything.

    Is this right?

  • How would I go about using the "S"?

  • I asked this before and got a good answer http://www.scirra.com/forum/viewtopic.php?f=3&t=7215&start=0

    But the more I use it I'm sure if it will work...

    What I need is to filter an INI file based on the value of certain items.

    Like generate a list of all groups whose items "Faction" match and out of those, whose item "Class" matches.

    Is this possible with Construct or python?

  • I'm loading external graphics so my game can be moddable. So that means each image has to go into a animation frame for the sprite. Now instead of have 100 frames when I might only need 10, is there a way to add a frame while the game is running, so memory is saved?

  • I need to know what the best method for this would be:

    My game has ships and their weapons use firing arcs. So if an enemy is in one of these arcs the weapon will auto-target, AND I want a lot of ships, 20+

    So, should I use a sprite to detect this (which would mean that the firing arcs are not customizable which I would rather avoid) OR values which could be customized, but maybe slower?

  • I just found a bug that was driving me crazy!

    I setup an INI file for saving purposes and each sprite has its own item which is a string.

    So it would look like

    [GROUP]

    Sprite1=Sprite1.x|Sprite1.Y|Sprite.Value('A')|Sprite.Value('B')

    And the problem is when I load and use GetToken(INI.ItemString("Group", "Sprite1"), 3, "|") to load the 3 token into a NUMBER variable of the sprite, Construct makes the variable to a STRING variable, which causes all sorts of problems when adding and such.

    I'll add 20 to Variable A which is already at 100, and instead of it being 120, it is 10020.

    I thought I'd point it out.

    Is this a bug?

  • [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.

  • 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?

  • I don't think that'd work.

    As an example generate a random value:

    0-30 -- 50% of the time

    31-60 -- 35% of the time

    61-100 -- 15% of the time

    not necessarily that but something similar.

  • Hi, I'm not sure if I made up a new word. But here's what I'm after:

    I want to generate a random value for a bunch of sprite's (0-100) which is easy, but the thing that has stumped me is, I want to make the high value more rare. So you could easily find sprites with random of 0-10 but would have to search a long time for 90-100.

    I know I could event out every factor of 10 or some thing like that, but does anyone know if there's an easy way to do this?

    Thanks