mindfaQ's Recent Forum Activity

  • Or with the text object: https://copy.com/m3aXIre0KYp2xMTB

  • Yeah should work... does int(selection) = 128 or round(selection) = 128 work?

  • How about this?

    https://copy.com/nVYGNNmNa3zVGOlg

    btw, you exchanging of pieces is flawed, since it is possible to overlap multiple empties.

  • mid(text, index, count)

    Return the count characters starting from index in text.

    Though you have to know after how many characters your third zero starts...

    If you want to do inplace changes to a token-filled string, you might be better off with using an array instead, really.

  • Depends on how you wanna modify the angle. You can check for multiples or 22.5° with the expression angle%22.5 = 0 (though I am not sure if some problems with float calculations will come up)

  • variable: numberofbullets = 1;2;3;1;2;3

    set currentnumberofbullets to: int(tokenat(numberofbullets, weaponlevel-1, ";"))

  • Yes, feel free to use it for whatever, consider the events open source (I'm no expert at licensing, so I don't know if a capx can be licensed as GPLv3).

    image: You are completely right. I will change that in the next version. My bad.

  • That's what I meant with the "special format"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe within the snapshotting event set the size of the layout and scroll to the part of the screen you want to screenshot of, snapshot, and then immediately set the screen back to the prior settings. Never tried if that works, but that's the only approach I can think off with the standard objects of Construct 2 for now.

  • sorry, it was a mistake by copy paste from another topic and then meedling within, here you can see the right format:

    {"c2dictionary":true,"data":{"n":"ん","na":"な"}}

    Also note that your on create trigger doesn't fire off, if you don't create another instance of this dictionary within an event of yours (and why would you). Use something like "on start of layout" or compare the keycount and if it is 0 for the dictionary, then do the json loading.

  • Construct 2 doesn't accept just any JSON string, but wants it in a special format

    something like this, if I'm not mistaken

    {"c2dictionary":true,"data":{"n":"ん","na":"な"}}

    and so on

    If you have the full version of Construct 2, you can start your layout in debug mode and check out if the keys are filled with your json string's data - I think they aren't.

    Also note that on created does not activate for the dictionary if you don't create one via some event. If you don't create it, use "on start of layout" instead to add all the relevant keys to the dictionary from the json string.

    LittleStain: I think Dictionary is the right choice, since you have name -> value pairs. In an array, you would need to do a for each x and then first look up the correct row that contains the key, before you can retreive the value for it.

  • Sure, the copy service sucks right now, maybe I'll have to switch over to another service <<

    http://strategy-investor.de/mgz10/scaling.capx

mindfaQ's avatar

mindfaQ

Member since 12 Oct, 2013

None one is following mindfaQ yet!

Trophy Case

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

Progress

13/44
How to earn trophies