dop2000's Recent Forum Activity

  • 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?

  • 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.

  • Are you previewing the same layout? If you are switching between different windows in C2 and then press F5, you may be running different layouts.

    So the problem is with two text objects missing? Run the game in Debug Mode, see if these objects exits, check their position, visibility, etc.

    Check if inst_Show variable is true, maybe it gets reset to false by some other event..

  • Sorry, I don't know.. I'm not a big specialist in JS.

    Are you saying you can't modify the JS file with that adsCompleted() function?

    I thought it was supposed to be user-defined function?

  • Another method is to create a family with Card sprite.

    Then you can refer to two instances of Card object in the same event:

    CardFamily overlapping Card:

    ...If Card is on layer 1

    ...If CardFamily on layer 1

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 257 followers

Connect with dop2000

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies