dop2000's Forum Posts

  • 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")

    • Post link icon

    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?

    • Post link icon

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

    • Post link icon

    I suggest using instance variables. See this example.

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

  • Try Construct 3

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

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

    • Post link icon

    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 
    
  • - 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")

  • Your events 26-27 can potentially run on every tick. And you have "Wait" action in them. This can cause serious problems.

    My guess is that the issue you are having is caused by that Wait action - even when the condition becomes false, all delayed actions from previous ticks will continue to run for 3 seconds! And if you reset isFinished to false in some other event, these delayed actions will continue to set it to true for 3 seconds.

    Use Timer behavior instead of wait - Timer runs per instance and can be stopped or paused.

  • You do not have permission to view this post

  • when I used the action to set collision cell size to 10x10 it reduces the checks down from 125000 to 800.

    This is insane! I wonder if collision checks actually work correctly with such heavy optimization.

    Ashley Could you comment? 125000 to 800 seems too good to be true.