dop2000's Forum Posts

  • All strings in expressions in C3 need to be in double quotation marks. For example:

    "dialogue.2.changePose"

    "dialogue." & index & ".changePose"

    JSON.get("dialogue.2.changePose")

    etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The only way to do this is to move it to another layer.

  • I don't know what to tell you. Try pasting the layout into an empty project. If the memory usage is still different, run both projects side-by-side in Debug Mode and check every object.

  • Maybe some additional objects are created in the first project. Or maybe the objects in two projects are different. Say, both projects have Player sprite, but in the first project it has more frames in the animation.

  • Ok, just be aware that you are saving a string of two values in one element of the array. If you retrieve the element, you will get a string like "3,8". Which is not the same as numbers 3 and 8.

  • You do not have permission to view this post

  • You can't use "Array Load" action, it's for loading JSON in a very specific format.

    You need to read values from your JSON and insert them into the array one by one. (Although I don't understand why you want to use the array, it would be easier to work with JSON directly)

    Anyway, you need to do something like this:

  • Yeah, I remember all that. I believe Rex had already left by the time C3 runtime was introduced. So any ports of rex's addons for C3 runtime were made by other people.

  • Balancing the object in the air with force will be tricky. Setting velocity is the easiest option. You can try lerping it to make it smoother. For example:

    On every tick: Set Y Velocity to lerp(self.Physics.VelocityY, 0, dt*2)

  • You can set its Y velocity to 0, this should stop it from falling.

  • You need to request the data with AJAX, then parse it into a JSON object. After that you can read data from JSON and copy it into an array if you wish so.

    For example, to get the rarity of the second bike:

    JSON.get("query.1.rarity")

    See the official "JSON" example in Construct.

  • You can create a separate animation for each collectable in the HUD sprite and use IDs as animation names.

    When an item is collected - set HUD animation to Item.ID

  • You were around for rex rainbow and how that didn't end well.

    Why? What went wrong with rex?

  • You might need to add "For each Enemy" as the second condition in event 133. So the event should look like this:

    Enemy current state="Fire"
    For Each Enemy
    Enemy nas NO LOS to BlueTeam
    

    If this doesn't help, add some debug logging to events 133-136 to see if and when they are triggered. Use "Browser Log" action.

    Also, if you want a random integer number between 1 and 3, don't use round() expression, it will return value 2 more often than 1 and 3.

    The correct expression is int(random(1,4)) or choose(1,2,3)

  • That said I still think pathfinding is valuable for the nodes and I'm thinking of using pathfinding to recalculate path, setting the nodes, then using MoveTo or Bullet to move from one node to the next.

    MoveTo behavior has "Move along pathfinding path" action, super easy to use.