dop2000's Forum Posts

    In the future use instance variables.

  • How did you make rebindable controls for keyboard? Why can't you do the same for gamepad?

  • You can't store loopindex or any expressions in JSON. Here's what I would do:

    JSON:
    {"line": "Hello to you in this example [offsetY=%] wavy text [/offsetY]."}
    
    
    Action: 
    Text Set text to replace(JSON.get("line"), "%", str(sin(time * 300 + loopindex * 90) * 8))
    
  • Construct still needs to load a lot of stuff before it can show your loading layout.

    You can add (or replace) images in Icons folder in your project, which will be used as a loading logo or app splash screen - click the file and change its purpose on the left properties panel.

  • Put it in quotes. And you value track is called "Value Track 1"

    TimelineController.Value("derptimeline", "Value Track 1")

    Or just spend 20 minutes reading about C3 arrays. Copy all values from global variables into the array. Sort it. Display on the screen, or copy back to global variables.

  • Are you saying that BBcode tags don't work when you store them in JSON? Can you show your code and JSON contents?

    You don't want to use instance variables and you don't want to use arrays. I don't have other suggestions for you..

    I suggest using instance variables. See this example.

    Or copy all results to an array and sort it. Array -> Sort action

  • 4.7GB used by images is quite a lot! Definitely something that needs to be optimized.

  • I had a project that was over 8GB.

    yuiiella What happens when you click preview? If there is a black screen, press F12 and check for error messages in console.

    You can also open Task Manager and check how much memory the browser is using.

    Put them into an array and use Array Sort action.

    Or if these values are stored in instance variables (for example, Position instance variable on Car sprite) - you can do:

    For Each Car order by Car.Position descending
    .. Text append Car.Name & " " & Car.Position 
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • - set value at (0,0) to Food //name of the item 2

    Did you mean set value at (1,0) ?

    To list all items from the array you can do this:

    Repeat array.width times
     Append text: "-" &array.At(loopindex, 0)& " " & array.At(loopindex, 1) & " " & array.At(loopindex, 2) & "$ " & array.At(loopindex, 3) & "kg" & newline
    
    
  • GetAsBeautifiedString() expression returns a portion of JSON as a string, which contains key names and values, with quotation marks "" and line breaks. These special characters need to be escaped with "\" if you want to store them in JSON as a string.

    To be honest, I don't understand what you are trying to do. If you want to copy all values from "Equip.0" into "Item", use Set JSON action:

    JSON Set JSON: "Item" to JSON.GetAsCompactString("Equip.0")