spacedoubt's Recent Forum Activity

  • how are you setting the array?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't believe just having more events affects the performance, it's going to depend on what exactly these events are doing..

    I was just reading here: which says, basically, that logic (more events) has hardly any affect on performance after rendering is taken into account.

    EDIT: oh.. I can't post links yet, heh.. it was a blog post called "optimisation: don't waste your time"

    I found a link to it from the performance tips section of the manual.

  • search the tutorials/manual/forums for "pick" and "UID" and "instance variables" and such. I'm not exactly sure if that's even what you're needing. You may very well be wanting families.

  • I'm me.

    I live in the US of A

    I usually hate forums but this one is pretty incredible, so here I am.

    I play a bunch of musical instruments (been playing in bands for 15 years), I do a lot of graphic design (bands gotta have t-shirts, right?). I dabble in animation and various other creative pursuits.

    Many years ago, I learned a bunch of computer programming with the intent of developing games, but life led me in other directions. After realizing there's all these game making programs to simplify the process, I've decided to get back into it.

    I'm currently working on translating a card game a friend of mine created into a video game.

    And all kinds of other stuff...

  • As someone who has not yet had the cash to get the license, I will tell you, you want the license.

    Don't get me wrong, free version is pretty incredible, but you're gonna want those limits removed.

    Also, there is certainly a way to set your slash attack up in such a way that doesn't require copy/pasting.

    Probably with a function that picks the object UID to decide how much/where the damage goes.

    There is (almost?) ALWAYS a better way than copy/pasting.

  • Problem Description

    When an accelerating bullet's speed reaches somewhere just after 2000 it starts returning negative numbers (though it keeps accelerating properly).

    Attach a Capx

    [attachment=0:394dvzjp][/attachment:394dvzjp]

    Description of Capx

    Hold down the mouse button, the ball increases in speed. Text shows bullet speed.

    Steps to Reproduce Bug

      make anything with a bullet behavior speed it up past 2000 read the bullet speed

    Observed Result

    seems like there's a range from around -2000 to 2000 the bullet speed cycles through.

    Affected Browsers

    • Chrome: (?)
    • FireFox: (YES)
    • Internet Explorer: (?)

    Operating System and Service Pack

    Windows Vista Home Premium

    SP2

    Construct 2 Version ID

    r173

  • does each sprite have an entirely different set of instance variables, or are you just wanting to set the same set of variables differently for each sprite as it's created?

    if the latter, then sounds like you would use an array containing the id and all the values for each sprite and as the sprite is created, choose the appropriate location in the array and set the corresponding variables from the array.

  • I think probably what you're looking for is function.param(0, 1, etc..) and possibly function.returnvalue

    when you call the function, you add the parameters to the function call

    they then can be accessed using function.param(0, 1, etc..)

    you can also then use function set return value

    which can be accessed using function.returnvalue

    so like:

    function "enemy distance"

    calculate distance using function.param(0) and function.param(1)

    function set return value to the calculated distance

    when you call "enemy distance" send it parameters of the enemies locations or their UIDs (if you want to find their locations from in the function)

    okay, my example leaves something to be desired, but is that what you're looking for?

  • Try adding one of these effects to your background: "Adjust HSL" or "Set Color".

    Then let the user set their parameters.

    See if that gets you what you want.

    Let me know if you need more help.

  • I'm working on a card game with a bunch of cards with a bunch of attributes. So first, I made a program which saves all these values into an array which can be saved as a JSON file which I can then load into my card game.

    I thought it might be a useful tool for anyone else making these kinds of games, so here ya go!

    Hope it helps!

    [attachment=0:175lmnay][/attachment:175lmnay]

  • Good to know.

    Easy enough to fix, just wondered why.

    Thanks very much for the explanation!

spacedoubt's avatar

spacedoubt

Member since 15 Jul, 2014

Twitter
spacedoubt has 1 followers

Connect with spacedoubt

Trophy Case

  • 10-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

12/44
How to earn trophies