dop2000's Recent Forum Activity

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

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

  • Here is an example showing how to call JS functions and receive results back in Construct 2 events via callback functions:

    dropbox.com/s/f9vte9290eidvm6/JS_Callback.capx

    It's much easier in Construct 3, because it supports scripting.

  • Check the console log for errors!

  • A quick google search told me that you can use .stringify(anObject) and JSON.parse(string) to convert objects to strings and back. So convert to a string, set this string to a global variable, save this variable in Local Storage.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have two options:

    1. Host leaderboards on you own server. You will need a web-server with MySQL database running on it. Search the Tutorials section for words "MySQL", "PHP", there are plenty of examples.

    2. Use one of the online services like Kongregate, GameSparks, Newgrounds, PlayFab, Firebase etc. Again, you will need to do your research, choose which one you want to use, download an addon for it.

    construct.net/en/make-games/addons/plugins

    chadorixd.itch.io/construct-master-collection

  • Learn to use families - add all enemies to a family, remove Pathfinding behavior from individual sprites and add it to the family instead. With the family you will be able to reduce the number of events significantly.

    "Regenerate obstacle map" is only required if you add/remove/move obstacles, which I don't see you doing in your code. If you are only spawning new enemies, you don't have to regenerate the map.

    And if you do need to regenerate the map, just one action is enough, not six.

  • Run Preview.

    In Preview window (not in the Editor window!) press F12 and select Konsole tab.

    Also, try Chrome browser.

  • I tried your project and it works for me, the video is playing.

    How do you preview? Try pressing F12, check if there are any errors in browser console.

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