deltlead's Forum Posts

  • so they are basically on a rotating top-down platform? I think it would be awkward to change relative perspective unless you have a different view than that.

    It's not the camera angle that the issue is. What I'm struggling with this is getting the player sprite to maintain its position relative to the ship while still being able to move around it.

  • I’m building a space game where your player pilots a ship around a massive and largely empty area of space. The player boards their space ship, enters commands in a console, then the ship flies in the instructed direction. As long as the player is on board the ship, they move and rotate with the ship and the game window rotates to match the orientation of the ship. When the player moves, they move inside the ship but keep the relative speed of the ship as well. Does anyone know what behaviors/math is required to make this work?

  • I'm working on a mobile project that has a map screen where the player can move the map by touching and dragging/swiping the screen. What sort of event structure should I use to make this work, or is there already a plugin that I'm unaware of?

  • It's been written on extensively on the forums, manual, and tutorial how to go about publishing your construct 2/3 project to google play. But I haven't seen anything on updating an existing app. Can someone explain that process and best practices step by step?

  • Haha a cheap solution, but to the user there's be almost no difference. I like it, thank you.

  • Let's say the game only has one layout. If I used the event on layout closed would that suffice? Or would it still not detect if the game is unfocused?

  • Thank you! That answers my question perfectly!

  • Not just like this.

    As indicated in the manual - construct.net/en/make-games/manuals/construct-3/plugin-reference/json - there is need for keys names.

    Also arrays in Construct go under a specific format :

    {"c2array":true,"size":[10,1,1],"data":[[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]]]}

    This is a blank 10,0,0 array in Construct. It is an object named "c2array" with a "size" and "data" keys/parameters.

    Your provided string does not even contain a key name and put as is in the JSON object will just trigger an error on parsing.

    Okay. So how would an array look in that format if it were a 10,5,0 array instead of just a single dimension array?

  • Can you explain how the C3 array editor works?

  • Use the Physics behaviour and make them both solid objects. The physics plugin should already have all the parameters built into it that you laid out.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's going to be a mobile app, and that's an excellent question. Honestly, I'm not sure yet. I think unfocused because a player might still have that app open but not be playing it, in which case the function still needs to run. But the function would have to work in both scenarios, unfocused and closed.

    How do I detect either of those?

  • Well it depends on how you measure how much line has been drawn. Is it the length of the line or the time that the player has been drawing the line. If it's the first, well I'm not sure. That's a tricky problem. If it's the second on the other hand, you can have an expression like this.

    Every Tick>

    Set *bar* size

    x = bar.x * ([Max Time Player can draw line]-[Time player has been drawing line])

    y = bar.y

  • Okay, I ran a very simple test file through the .csv to JSON converter you provided:

    Here is the .csv:

    a1,b1,c1,d1

    a2,b2,c2,d2

    a3,b3,c3,d3

    a4,b4,c4,d4

    I ran it through the converter and got this output:

    [ { "a1": "a2", "b1": "b2", "c1": "c2", "d1": "d2" }, { "a1": "a3", "b1": "b3", "c1": "c3", "d1": "d3" }, { "a1": "a4", "b1": "b4", "c1": "c4", "d1": "d4" } ]

    Now if I save this data in a .JSON file and use the JSON plugin to open it in Construct3, will it become a regular array with regular indices?

  • I'm working on a game that stores a LOT of data on all the different objects. The game is a real estate game and there will be several hundred unique houses, each has an address, value, and 5 different characteristics that all need to be stored in one large array that the game will access. Is there a way to convert a spreadsheet to C3 as a 2 dimensional array?

  • I'm working on a game that requires a seemingly random, but constrained and continuous wave function that controls the values of certain (think of stock market graphs).

    I've created a wave function using a Factional Brownian Motion or Fractal Noise.

    (See Nepeo's tutorial on FBM/Fractal Noise)

    construct.net/en/tutorials/getting-started-with-the-advanced-random-plugin-30

    I then plug this function into a sigmoid which restricts the range of the function to (0,1), then translate and stretch this function to fit the range (-1,1).

    y = 2(1/(1+e^(-1/8)a))-1

    (Where a is the output of the fractal noise function)

    The result is a beautifully random looking wave function that sits neatly between -1 and 1.

    This is just a really cool piece of math and the concepts can be applied in many areas of game design. The ability to create apparent randomness from sine functions that follow a coherent pattern and smoothly transitions between values is incredibly useful.

    I used Desmos to create the graphs and functions, you can see the actual graphs and tweak them yourself here: desmos.com/calculator/f7zznq1zeq