dop2000's Forum Posts

  • I would try adding more data to the file, maybe increasing its size to 20+ MB. See if this makes the problem worse, or if will allow to reproduce it in a test project. Or maybe try a different web service.

    Once you can pinpoint what exactly is causing this issue, it will be easier to figure out a solution.

  • Are you sure Play.Data_Ready is False by default and you are not switching to another layout before AJAX loads the file? This is the only thing that potentially can be wrong with your code.

    Maybe 16MB file is just too much for Construct. Try expanding all branches in that error message in console log, maybe you'll find something there.

    Are you saying this only happens with the exported game? Maybe it's a problem with your web server.

  • Can you show a screenshot of your events where you request and load this JSON?

  • What behavior are you using for the player? An object with Platform behavior can stand and walk on moving platforms, you don't have to do anything.

  • Could you share a sample project?

  • It works fine for me.

  • There are two expressions you can use with Touch object - Touch.SpeedAt(0) and Touch.AngleAt(0)

    Say, when an object is grabbed, you can start recording how the touch angle is changing. Here is an example from one of my games:

  • It's easy to calculate platform speed from its position in a previous tick. Add two instance variables - previousX and speed:

    On every tick:
     Platform set speed to (self.x-self.previousX)/dt
     Platform set previousX to self.x
    

    You can actually just add the distance platform traveled since the last tick:

    Self.X+(Platform.x-Platform.previousX)

  • Unless you need the object to look realistic when it rolls and bounces off floor and walls, I would not recommend using Physics for this mechanics. Physics behavior may glitch when used in combination with Platform, Solid etc.

    When the object is picked up, you can pin it to your character, or connect it with hierarchy. Throwing can be done with Bullet behavior (enable gravity if needed). You can add a random rotation with Rotate behavior.

  • There's probably a math method to do this, but I don't know it. And there are a couple of "dumb" methods, which I would probably use :)

    1. Create a collision polygon in a sprite with this addon. Then check if this sprite is overlapping a point.

    2. Draw the polygon on a drawing canvas, fill it with color. Then save a snapshot and read pixel color at point coordinates.

  • You can still open the templates in free version of C3, check how they are made, and then try to do the same in C2.

    Also, you need to post in C2 forum to avoid confusion:

    construct.net/en/forum/construct-2/general-discussion-17

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • DiegoM I understand that form controls don't support rotation (and z-ordering) and can definitely live with that. If this is the biggest challenge with adding them to hierarchy, maybe you can simply deactivate "Transform angle" and "Transform Z elevation" checkboxes for them?

  • DiegoM Are there any plans to add form control objects to this list?

    I had a task recently where I needed to create a large complex popup dialog with lots of objects. I was able to connect everything in a hierarchy except for a few TextInput objects..

  • Select "Google Play" in the list of objects. And then you'll see its properties on the left panel - enter the correct app ID there.

  • General rule - "On ..." events are triggered once. "Is ..." events are continuous, they run on every tick, while the condition is true.