randomly's Forum Posts

  • I'll PM you if I do.

  • So happy this is still being updated.

  • The process of getting a value from the LocalStorage:

    • Action: Check item [key] exists
    • Event: On item [key] exists -> Action: Get item [key]
    • On item [key] get -> (now, the value is available under the expression LocalStorage.ItemValue)

    Also, as soon as the event On item exists, you know that the key exists. If On item missing triggers, that means that it doesn't exist.

    Here is an example .capx in case you are stuck: Download

  • [quote:3v3o2ju3]Is there another way to keep track of time played across the app being closed?

    Yes, I recommend rexrainbow 's TimeAway plugin.

    It works with the Local Storage, but saves you all the tedious saving and loading.

    This won't work for the total time in the app though, obviously.

    ________________________________-

    [quote:3v3o2ju3]Is there another way to store numbers besides Local Storage

    If you want your app/game to work offline and don't want to work with the system time, you will have to work with locally saved files.

    Apart from LocalStorage, there is also the possibility of saving, loading and parsing files with NW.js & AJAX.

    This will be more complicated, but will also give you more freedom when it comes to the workflow.

    __________________________________________

    [quote:3v3o2ju3]but say they uninstall and then re-install the game, the Key is missing

    That's the way, LocalStorage works. The keys/values saved by LocalStorage are part of the app, so they get deleted as well if you delete the app.

    If you don't want to work with online servers and you are not on mobile, you could use the registry, but apart from that, I don't know about any other ways of saving and keeping values even when the app is reinstalled.

    (That's just me though, there might be others out there who know better)

    ___________________________________

    [quote:3v3o2ju3]Like where its supposed to update the global variable with the Key value it says NaN

    As mentioned above, when uninstalling the app on mobile, the LocalStorage keys will be deleted since they are stored in the same location as the app.

    NaN in connection with LocalStorage will appear when there is no data available. (Or if you try to combine strings and numbers, but this doesn't seem to be the case here)

  • Or add a Timer behavior to the gun (or any related object).

    Start the timer when the reload is initiated.

    When the timer is finished, the reload is finished.

  • This depends heavily on your game and how it works.

    For example, shifting the difficulty in a Tower Defense game will be different to a Jump & Run or Shoot 'em Up.

    There is no general way that is applicable to all kinds of games.

    Usually, you can increase the enemies health, damage, etc (basically stuff that is bad for the player) and increase stats that are beneficial for the player (like his health).

    But for more detailed tips, you will have to provide us with more details of your game.

  • The way LocalStorage works is the same as Dictionaries work:

    Each key can only exist once.

    This means, that if you write to an existing key, it will always overwrite the current value.

    This is the way it works and can't be changed.

    There is a workaround though:

    • When the app is started, get the current value from the Local Storage
    • Save the value to a variable and increment the variable regularly, as desired
    • In regular intervals, or before you quit the app, save the variable as the value of the Local Storage key
  • I'm surprised that nobody replied yet.

    I find this plugin useful. It may not be a huge change, but it helps, especially the string lists.

    Thanks for your effort!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Either use CSS or use a TextBox plugin like this one.

  • Sounds like the issue is the TiledBackground's Hotspot.

    Try to set it to "Top".

    Here is an example .capx if you still struggle.

  • Follow the tutorial again, but remember:

    Always replace width by height, since you don't want to increase your loading bar's width, but its height.

    Also, remember that your TiledBackground has to be scalable upwards and not sideways, like a regular loading bar.

    I you still struggle, I will provide a .capx.

  • You will need to provide more details what you want to have as a result to get more responses.

    • How advanced are your 3D program skills?
    • Are you already familiar with a specific 3D program and want help for that specific program?
    • What 3D style are you trying to achieve? (Low-Poly, Voxel, Normal)
  • Basically, you have to refresh the Monster's target coordinates regularly.

    Do this by using the following conditions/actions:

    Every X seconds
        -> For each Monster
             -> Set angle toward Player.X, Player.Y[/code:1f1o89sc]
  • Please check this:

    • Do the .scon and .scml files have the exact same name?
    • Do you have the latest version of the plugin? (Download)
  • Problem Description

    (Just a minor bug, since it's only possible to occur in Win 7 and if C2 is in the Start Menu, but nonetheless, it has a crash as a result.)

    When opening a template, closing the template, opening it up again and trying to open another template, C2 stops working.

    Attach a Capx

    The only .capx needed is already included in each C2 release as a template.

    Steps to Reproduce Bug

    • Open C2, don't open any existing project
    • Go to File, New and choose any of the templates.
    • Close C2, no need to save anything
    • Click the Windows Icon in the bottom-right corner to open the Start Menu
    • Click the little arrow next to the C2 entry to see the most recently opened projects
    • Click on the template .capx that you just opened
    • When it has finished loading, repeat Step 1 with the same template

    Observed Result

    This should result in a crash of C2.

    Expected Result

    Obviously, no crash.

    Affected Browsers

    Not browser-dependant.

    Operating System and Service Pack

    Windows 7, SP1

    Construct 2 Version ID

    beta r243