dop2000's Forum Posts

  • Dictionary in C2/C3 is "one-dimensional", it can only hold a simple list of keys and values.

    If you open your file in Firefox or any other program that can view JSON files, you'll see that it has a complex structure - there are 4 or 5 nested levels. You can't simply import this into a single dictionary, you will get a mess. You will need to develop some sort of a "database" structure with multiple dictionaries/arrays and the way to link records between them. This is not an easy task.

    There are a couple of plugins for C2 that allow to load and parse complex JSON files like this, but I don't know if any of those plugins were ported for C3.

  • There must be an error in your code. Please post your capx file or a screenshot of your events.

  • MPPlantOfficial

    To open my capx saved in a later version, upzip it to a folder, open .caproj file in Notepad and edit this line:

    <saved-with-version>25703</saved-with-version>

    For example, if you have version 255, change it to:

    <saved-with-version>25500</saved-with-version>

  • What if there are two or more walls? How do you choose the closest route? This could be a very difficult task.

    Why don't you use the Pathfinding behavior? I understand you want to show the path in real time, but pathfinding works fast.

    See this example:

    https://www.dropbox.com/s/jocoq56vsfkg3 ... .capx?dl=0

  • Run your game in debug mode, check Array content, check SoalGambar sprites, variables etc.

    If this doesn't help, add debug output to your events (Browser->Log), to see which events are triggered and when.

    This is standard troubleshooting, you should learn to do it. I can't fix your entire game for you.

  • First condition:

    Keyboard-> On any key pressed

    Second condition:

    System-> Compare two values -> (Keyboard.LastKeyCode=49 | Keyboard.LastKeyCode=50 | Keyboard.LastKeyCode=51) =1

  • It should work.

    You'll need to install a plugin, there are a few available:

  • I haven't tried this, but it seems fairly straightforward to me.

    Pick the player with the lowest X

    Pick the player with the highest X

    Pick the player with the lowest Y

    Pick the player with the highest Y

    scrollTo X=(highestX-lowestX)/2

    scrollTo Y=(highestY-lowestY)/2

    To determine zoom level, use something like this:

    scale = min ( screenWidth/(highestX-lowestX), screenHeight/(highestY-lowestY) )

  • Try installing the latest version of C2. There were recent changes on how the audio is played in Chrome and old C2 versions may no longer work.

    Set preview browser in project properties (on the left panel), not in the program preferences.

  • Like I said, you have lots of mistakes in your events.

    For example, you are using wrong UIDs for SoalGambar sprites in the "Mudah" event sheet. You need to update all UID numbers or use an instance variable.

  • There are lots of mistakes in your capx..

    I made some changes in the the "Sulit" event sheet.

    Run the game in Debug mode, select Sulit button and see what's happening with the Array.

    At first there are 28 elements, as you answer the questions, the questions are removed from the array.

    https://www.dropbox.com/s/8e3x5witiiyja ... .capx?dl=0

  • Can you use some other file sharing service? This one doesn't allow to download without an account.

  • The LiteTween2 behavior is active by default on your LightningSkillMenu sprite.

    When it ends after about 1 second of runtime, inst_Show is reset to false.

    So if you start the game and click the inventory too soon (say, after 0.8 seconds), then in 0.2 seconds the LiteTween2 ends and the inst_Show is reset, detaching those text objects from the menu sprite.

    I told you you should use Browser-Log. You could have quickly figured this out yourself

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • try posting the link without the "https://" part

    or insert spaces in the middle.

  • I don't understand what you are trying to say, sorry.

    Can you share your capx?