KuJoe's Recent Forum Activity

  • This might seem very basic, but I've added a "load game" button to my start menu and I want to keep it hidden if there's no saved game, is that possible?

    If not, is a valid workaround just having a global variable keeping track if the player pressed the "save game" button or not?

    Thanks!

  • I thought there was some information on this topic, but I've searched high and low without any luck.

    As the title says, I'm wondering what happens if I create a game and publish it somewhere that earns revenue and then I cancel my Construct 3 license?

    Thanks!

  • I had to get a little more complex with my code in order to make sure the lines get destroyed properly.

  • I figured it out using this post which I tried before but I forgot to change the origin point, setting that fixed the issue: construct.net/en/forum/construct-3/how-do-i-8/create-line-two-sprites-160431

  • I'm trying to draw a straight line between two sprites, how they connect doesn't matter as long as they're connected. I found some old posts about it along with some old Construct 2 tutorials but they don't seem to work for Construct 3 (or I'm missing something).

    Any ideas?

  • Yes it is possible to play animation based on variable value. Make sure to use str to call the animation.

    For example:

    + System: Trigger once

    -> Sprite: Set animation to str(Self.num) (play from beginning)

    Thank you, I was missing the str() portion. :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a sprite that has 10 animations (labeled 1-10) and I want the game to pick the animation based on an Instance variable so if the variable is set to 5 the animation it will play is the one labeled 5.

    Is this possible or do I need to create 10 "If instance variable = X then set animation to X" events?

  • Hey Kujoe, what differences have you been seeing?

    As far as I know there is no difference at the moment between the two.

    I thought that I had read there were some changes but if there aren't any I'll stick with Construct 2 then. Thanks!

  • I haven't touched Construct 2 since November of last year but I decided to pick it up again and work on my old project some more. I've been reading up on Construct 3 and it looks like there are some changes to how Multiplayer is handled but it's not available in the demo so I can't try it out for myself. Can somebody explain to me what's changed and how much more improved Multiplayer is in Construct 3? I ended up removing the multiplayer aspect from my game entirely after hitting some brick walls but I'm willing to give it another try if it's significantly better in Construct 3. Thanks.

    EDIT: And if there's already a thread, blog post, or video on this please direct me to it. My search results came up empty.

  • OK, I was under the impression that the debugger was 100% accurate and "could do no wrong". Now it makes more sense.

  • > -quote snip-

    >

    > It's just weird that I can't use numerical keys in dictionaries. Not a huge deal but I figured it would have been posted somewhere on the forums or in the manual.

    >

    Oh, but it is in the manual!

    > The Dictionary object stores strings and numbers. Each value has an associated key, which is a string.

    >

    So why does it work when my key is a word but not a number?

    This works: http://n3rd.info/upl/construct2_tokenat_works.png

    This does not: http://n3rd.info/upl/construct2_tokenat2.png

    The values are the same, the keys are the only thing that are different. This is starting to look like a bug now.

  • > -quote snip-

    >

    > Somebody else pointed this out also which is strange because when I have a malformed JSON output and try to insert it into an Array it won't accept it. The fact that the Dictionary is accepting it (and the debug shows that the Dictionary is apparently populated correctly) has me confused. I wish there was an up-to-date example for formatting JSON output from remote files since all of the old solutions don't appear to work.

    >

    Remember that Javascript is not a type-safe language, so if there is no run-time check to make sure that the data is valid, then it will "accept" anything. From what I know of Lua (another type-unsafe language), this sort of thing is hard to actually check at run-time, since all Lua tables (or Javascript objects, in this case) are fundamentally dictionaries at their core. Arrays are just Lua tables (or Javascript objects) with numerical keys.

    If you want a fool-proof way of determining how your data needs to be formatted, start with an empty dictionary, and use the 'Add key' action to populate it with a few entries, and then export it to JSON. It's pretty easy to figure out how to edit the JSON text to add new key-value pairs from there.

    It's just weird that I can't use numerical keys in dictionaries. Not a huge deal but I figured it would have been posted somewhere on the forums or in the manual.

KuJoe's avatar

KuJoe

Member since 8 Sep, 2016

None one is following KuJoe yet!

Trophy Case

  • 8-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • RTFM Read the fabulous manual
  • x2
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • Email Verified

Progress

12/44
How to earn trophies