Toddler's Recent Forum Activity

  • THANK YOU EVERYONE

  • The layout is long because it is platform, I want the bullet to be destroyed right outside the viewable area, not to go into areas I can't see and kill all the bad guys already.

    How do I do that ?

  • Can someone explain these three like I am a retard ?

    No, the manual confirms that I am a retard, I don't understand what it says, I think it is speaking African Language.

    Thanks.

    Is Between Angles:

    Is clockwise from:

    Is within angle:

  • Cool Beans !

  • Does the Local Storage stores only strings ?

    It seems I can store numbers as well and I just want to make sure I can rest easy that it does store number as numbers and not doing some voodoo conversion in the background to string.

    Thanks.

  • Yeah, accidentally used a new JS feature which Chrome supports but Firefox doesn't yet. It's already fixed for the next beta.

    It is really depressing to hear this, Firefox was once the big game of the town.

    And now, Firefox doesn't play many of the webGL features and now this...

    If it is not for Firefox's ability to download videos, I would have stop using firefox completely by now.

  • can i use local storage for saving highscore ?

    YES you can, I am using it now and it functions PERFECTLY.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ashley, looks like you messed up big time with this release ;p

    Now Local Storage doesn't even work.

    LOL

  • Alright, then use this SURE WILL WORK technique.

    Assign a tag to this sound you are playing.

    Before you play the sound, call the stop sound function to stop this tag, so that if it does play twice, only one will leave the speakers.

    You are welcome

  • Wow, you private messaged me to ask for my opinion, this is the first time I got this, ha ha ha

    Ready for the shocker ?

    Try to add "Trigger Once while True" somewhere in this code of yours, best if on the condition that calls the sound in the first place.

    You are welcome.

  • Oh I spoke too quickly, it seems if you make more than one request at the same time, the "itemvalue" will be overridden in all the wrong sequence depending on the latest retrieval UNLESS you use item get.

    I ended up still having to use on item get.

    It's ok, I think I understand why this will be an issue.

    It's alright.

    But kinda still a bug though, lol.

    So people, the correct sequence to using Local Storage is:

    Step 1:

    Check if Key Exist.

    Step 2:

    If Key doesn't exist triggers, do your shit.

    If Key DOES exist, call "get item" for that key.

    Step 3:

    Trigger happens from get item, retrieve it via itemvalue.

    Yes Webstorage does it all in one line but it seems those days are decidedly over now

    ======================================================================

    Old Method:

    New Method:

    ======================================================================

    I've finally bite the bullet and change it, for all of you still deciding, remember, the more you add to your game, the more it is going to be difficult to comb through and remove your webstorage, yes I know you probably group it properly but CAN YOU BE SURE ?

    Better fix it while your game is still small, or even if it is big, do you want to fix it when it is Bigger ?

  • THANK YOU for setting the ItemValue to the key value without "Get item" action.

    Local Storage is now a full replacement for WebStorage.

    Yes it is asynchronous but that is ok now because the *trigger within a trigger* nonsense is over.

    I can see the slow death of webstorage in Construct 2 now.

    People, please stop using Webstorage for all your future projects, Local Storage is ready for prime time

    Thank you ASHLEY.

Toddler's avatar

Toddler

Member since 19 Jan, 2012

Twitter
Toddler has 1 followers

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Email Verified

Progress

14/44
How to earn trophies