dop2000's Forum Posts

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • oosyrag You may be right. I still think with some tweaking it may be possible to make such game with physics. I once helped making a pixel art golf game where the ball moves with Physics in a similar way. It speeds up and slows down quickly, doesn't bounce much etc.

  • Try adding a condition "Tween is NOT playing" to "On collision" event.

  • Also, do you know how I might be able to take a snapshot of a portion of the game screen (specific x and y coordinates) instead of the whole screen?

    From the documentation:

  • I don't see your screenshot..

    Here's what you need to do:

    System Snapshot Canvas
    Wait for previous action to complete
    AJAX Set Response Binary
    AJAX Request URL : CanvasSnapshot 
    Wait for previous action to complete
    AJAX POST BinaryData.GetBase64 to "https://yourServer"
    

    AJAX Request will feed image data into the BinaryData object. AJAX POST will post this data in Base64 format to your endpoint.

  • No, use "AJAX Request URL" action and put CanvasSnapshot in URL field.

  • You can definitely make this game in C3 with Physics, but it will take a lot of experimenting and tweaking to make it right. You need to find a nice combination of properties like density, friction, gravity etc.

    Also you might need to adjust the ball movement with events. For example, limit its velocity to prevent it going too fast or jumping too high.

    That mechanics in the video where the ball is rolling on the wheel may be tricky too. The ball should remain stationary, so I would probably do it by disable physics temporarily, until the next jump.

  • Button object and other Form Controls in Construct are not really suited to be used in games. They have too many issues and limitations - with z-ordering, scaling, "stealing" focus.

    I suggest you make your own button with a sprite, or sprite+text or 9patch+text. It will be easier to style too, because you can load any graphics, add different animations for hover/clicked states etc.