dop2000's Forum Posts

  • 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

  • Try Construct 3

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

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

  • If you remove the question from the array after displaying, you don't have to worry that the values in random_number can repeat!

    Here is an example:

    At first your array looks like this:

    Index 0 - "What is your name?"

    Index 1 - "What is your birth date?"

    Index 2 - "Do you have a pet?"

    Index 3 - "Do you like games?"

    You generate random_number=floor(random(array.width)) and it's 2.

    So you display the question from the array at index 2: "Do you have a pet?"

    Then you delete the record with index 2 from the array.

    After that your array contains these records:

    Index 0 - "What is your name?"

    Index 1 - "What is your birth date?"

    Index 2 - "Do you like games?"

    Then you generate random_number again and the result is 2 again!

    But it's not a problem , because this time the question at index 2 in the array is different! Now it's "Do you like games?"

    And then you remove the question with index 2 and can repeat this until you have no questions left in the array.

    Do you see what I mean?

  • I really doubt that this is a bug in C2 editor.

    Since you know now that the problem is with inst_show variable, add debug output (Browser-Log) to all events where it can be set to false or toggled.

    There may be lots of different reasons why you game behaves differently every time you run it (mistakes with local storage, for example), but it's impossible to tell without seeing your capx..

  • Sorry, I don't understand your problem.

    My idea was to add all questions to an array, then remove them one by one. This is to ensure that each question is displayed only once.