artheads's Recent Forum Activity

  • It has the FormatNumberAsDecimal expression which formats the passed in number with the correct punctuation for a locale of your choice.

    Wow! Will try it for sure, thank you!

  • Hi folks! I have a variable 'MyVariable' that increases by a random number every 1 second. I wish to display it with comma separator (e.g. 750,000,000) and I do:

    Set Text > RegexReplace(str(MyVariable), "\B(?=(\d{3})+(?!\d))", "g", ",")

    However, I also wish to update this text every tick, so it will "count very fast" 1 by 1, despite the fact that I can add to MyVariable larger numbers than 1. How to achieve this saving my text formatting (comma separator)?

  • Thanks bro! Actually it lay right on the surface :)

  • Hi all! There is a variable in which the number 10 is added once every 1 second. This variable is rendered using a sprite font. How to make the text displayed not by adding 10 at once, but by 1, such as "counter"? That is, I added 10 to the variable, but the text "counts" from 0 to 10, then from 10 to 20 and so on.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I realised I had to make a 'Stylesheet' file

    Why not add the code to the game's existing style.css file?

  • For example, you have a dictionary...

    Thanks for a good explanation, but this works with keys. But I need to get entire Dictionary.AsJSON in my script. Is it even possible without using extra variable?

  • Try something like this

    Thank you, but what if I need to get only one special Dictionary object, while there are several in my game? And what is 'foo'?

  • I'm trying to set a variable in my script (scripts in Events) with Dictionary.AsJSON,

    I did this but it doesn't seem to return the correct data (JSON with keys/values):

    var gameData = runtime.objects["dictGameData"].getFirstInstance()

    How to get exact dictionary object as JSON using its name (e.g. "dictGameData") or maybe its UID and then get its all keys/values as JSON to set a variable?

  • You do not have permission to view this post

  • I finally found a solution: just move all your music files from the "Music" folder to the "Sound" folder and that annoying player on Android won't bother you anymore!

    Ashley

    p.s. How to mark this thread as "Solved"?

  • howtoconstructdemos.com/two-virtual-thumbstick-capx

    Just checked this example on 3 year old smartphone and it shows pretty poor performance with almost empty layout, about 50% cpu (high draw calls) and fps drop to 30 when thumbsticks is "in touch". Any idea how to improve this?

  • I'm afraid there's no way to disable this at the moment.

    Hi Ashley, sad to hear. Maybe there are some ways to do this in an exported html5 game?

artheads's avatar

artheads

Member since 1 Aug, 2015

Twitter
artheads has 40 followers

Connect with artheads

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • x4
    Popular Game One of your games has over 1,000 players
  • x3
    Famous Game One of your games has over 10,000 players
  • Viral Game One of your games has over 100,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies