dop2000's Forum Posts

  • Something happened to my Construct and now when I'm editing a condition/action, focus is not set to the first field.

    See this gif - the "Value" field briefly receives focus and then loses it..

    I spend many hours every day coding in C3, and this seemingly small issue is causing me a lot of frustration. Does this happen to anyone else?

    The autofocus works correctly in Firefox. So if this a Chrome issue - how can I fix it? (I tried disabling all extensions and clearing cache, it didn't help)

  • adventurist Did you manage to find a solution?

  • You need to post a suggestion and hope it gets enough votes..

    construct3-21h2.ideas.aha.io

  • Try to decode the base64 string here:

    codebeautify.org/base64-to-image-converter

    If it works, then the problem is somewhere else. Like I said, maybe the script you are using to save base64 to png requires some additional headers.

  • I understand you are talking about c3p files, and I agree sometimes I need to see the file name, usually when I have two versions of the same project open.

    However, in C3 you can also save projects as a folder or to a cloud service. Displaying a file name in these cases will be useless.

  • piadinaro It's a really fun game with great art! But I don't understand why my rockets only fly a very short distance above the ground before blowing up. Is it supposed to be like that?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Event: Keyboard: arrow-down is down --> PlayerAnimation: Sitting

    Sub-Event Keyboard: on W pressed --> PlayerAnimation: UpperCut

    I think what happens is that the first event is running on every tick, and "Sitting" animation immediately replaces "UpperCut" animation.

    Try these three events:

    arrow-down is down
    PlayerAnimation "UpperCut" is NOT playing
     --> PlayerAnimation: Sitting
    
    
    on W pressed 
    arrow-down is down
     --> PlayerAnimation: UpperCut 
    
    
    Player on UnpperCut animation finished
     --> PlayerAnimation: change to something else
    
  • You might need to add a header to Base64 data:

    data:image/png;base64,...........

  • This data - ["Apple", "Orange", "Mango", "Banana"] may be loaded into JSON object, but not into an array. Arrays in C3 require a specific structure of JSON string. It looks like this:

    {"c2array":true,"size":[5,4,1],"data":[[[.....]

    You can use Array.AsJSON expression to export array data to JSON string, then put this string into the variable. Then you will be able to load it into the array using Array Load From JSON action.

  • You have played the game a lot while developing and became an expert. You also know how the game works internally. What seems obvious and easy for you may actually be quite difficult for other players.

    or the game is simply not interesting?

    If you need to know if people are enjoying your game, and what needs to be improved - add analytics to your game. It will show you stats like playtime, session time, user retention etc.

  • Yes, some browsers have a maximum resolution limit for textures, I believe it's 4096x4096

  • Add "Browser Log" to key events which you want to debug, for example outputting variable values etc.

    Then press F12 when you run the game and check messages in the console log.

  • Yeah, with booleans you need to use "Is boolean set" conditions. An integer variable with 0/1 values will work too, in fact I prefer it to boolean in Construct.

    Regarding your question to mikehive - you can add a couple of conditions:

    Enemy Health <= 0
    Enemy Health > -1000
    ....Enemy set health to -9999
    
  • If you want some event to happen only once per enemy when it becomes dead, you need to use an additional flag. For example:

    Enemy Health<=0
    Enemy isDead=false
    For Each Enemy
    ...Enemy set isDead to true
    ...Audio play sound
    

    In case you are changing some property of the enemy when it becomes dead (say, switching to another animation or disabling its collisions), you can check that property instead.

    Enemy Health<=0
    Enemy animation "Dead" is NOT playing
    For Each Enemy
    ...Enemy play animation "Dead"
    ...Audio play sound
    
  • "Trigger Once" is the most misunderstood feature in Construct. The way you are using it is definitely wrong. It's supposed to be the last condition in an event and should not be used on its own.

    Also, never add Trigger Once to objects that have multiple instances. It doesn't work per instance. So if you have an event like Enemy HP<0 + Trigger Once, it will only work for the first killed enemy.