dop2000's Recent Forum Activity

  • That's because you are removing rows from the array, but still selecting random(0,9) index. Also, don't use round() with random, it causes non-uniform distribution of results.

    Change it like this:

    Set randomNumber to int(random(0,QuestionArray.Width))

  • Ashley, The idea that a frame rate from a different monitor is used seems plausible. But why does this only happen with "Latterbox scale" mode, and doesn't happen with "Letterbox integer"?

    Could it be that the resolution or aspect ratio of the wrong monitor is used in some calculations? One monitor on the video is definitely wider that the other.

    fart6407 Can you try with "Letterbox scale" mode, but don't maximize the browser window? Then drag it to another monitor, and again, don't change the window size, and don't maximize it. Basically test on both monitors with the same window size.

  • Try this project:

    dropbox.com/s/jgoh0q74m81ep7w/MonitorTest.c3p

    Press Left key and keep holding it. Player will move 4000px to the left, at the end it will show you how much time it took.

    I tested on 60Hz and 75Hz monitors and in both cases the result was 8.1 seconds.

  • Thanks!

    I actually managed to test in another country and the currency code was 3-letter ISO. However, for Australia and probably other dollar-countries it's just "$", which may be confusing. So I will take your advice and will list the prices in USD for now, it's easier.

  • So you are using C3? You really should have posted this in a relevant sub-forum:

    construct.net/en/forum/construct-3/scripting-51

    I don't know if dynamic importing is possible, I don't have much experience with scripting, but you can try simply importing it into Scripts folder. See this example - I found a library for QR encoding and it was very easy to use it in C3:

    dropbox.com/s/u9fv261wv84dccx/QR_Encoding.c3p

  • If these are top-level events, then "For each DummyAttack" is triggered on every tick, but you have another condition "Every DummyAttack.attackSpeed seconds".. Not only this is not good for performance, but I can't imagine how these two conditions work together, especially if different instances have different attackSpeed values.

    Use Timer behavior instead. When DummyAttack is spawned, start its Timer. In "On timer" event do "For each DummyAttack", pick Enemy, subtract from health.

  • If these are top-level events, then "For each DummyAttack" is triggered on every tick, but you have another condition "Every DummyAttack.attackSpeed seconds".. Not only this is not good for performance, but I can't imagine how these two conditions work together, especially if different instances have different attackSpeed values.

    Use Timer behavior instead. When DummyAttack is spawned, start its Timer. In "On timer" event do "For each DummyAttack", pick Enemy, subtract from health.

  • Yes, you can easily save the array in Local Storage, and yes, it works on mobile. Use Array.AsJSON expression.

    You can do this - on game launch check if the key exists in Local Storage. If it does, load the array data from Local Storage. If it doesn't load it via AJAX from your JSON file.

    I have a demo, it saves a dictionary in Local Storage, but it's very similar to saving an array.

    dropbox.com/s/lu1mzn30kl2sawf/LocalStorageSaveVariables.c3p

  • I can't open your link, it tells me that the file has been removed.

    Make sure the text object is big enough (tall) to fix the text, otherwise it will not be shown. Also, try adding trim expression to remove any possible line breaks from the start of the text. For example:

    Set text to trim(Array.at(1))

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How do I display prices in my in-game shop? As I understand, I have two options:

    1. Display hard-coded prices in USD. When players click to purchase, they will see a pop-up window from Google Play or Appstore with the price in their local currency.

    2. Display the actual and up-to-date price in local currency. I see this in many popular games and this is obviously the preferred method. I tried testing this, but I couldn't spoof my country. Does ProductPrice(ProductID) expression always return the price with the currency code/symbol? How will it look like for countries which don't use dollar/pound/euro?

    For example, for Russian ruble - will it ‎be ₽ 100, or RUB 100, or Руб 100 ?

  • Yeah, new function parameters work differently, see this video from Ashley:

    Subscribe to Construct videos now
  • Use two actions, for example - Simulate control Left, Simulate control Up.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 271 followers

Connect with dop2000

Trophy Case

  • 9-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
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

29/44
How to earn trophies