Kyatric's Recent Forum Activity

  • No.

  • I would believe from your description that you are not creating a local storage key on your mobile game.

    You did at some point on your test computer, so the key exists, and you apparently have code that DOES save the value into the key.

    On the mobile though, you possibly only try to load a value from a key that does not exist.

    As I explained in the tutorial, you need, the first time you execute your game on the device to create the key and populate it with a default value.

    So in a "On start of layout" in the first layout of your game, have an action that checks if your local storage key exists (Check item YOURKEY exists).

    If it does exist, (event "On item YOURKEY exists") then you set the value of your global variable score to the value of the key YOURKEY in the local storage.

    If it does not exist (event "On item YOURKEY missing") then you start by creating the key action "Set item" YOURKEY to a value of 0 and set the value of your global score variable to 0 as well.

    If the rest of your code is correct (and that you are always using the correct key YOURKEY name), all should work as intended.

    Otherwise, do post your capx, that will be the easier way for other people to possibly see where you are going wrong.

    If you feel it is too complicated, take your time.

    Read several times, over several days the various explanations (and tutorial) and it should become clearer after a while.

    Game executed

    First time ever ? (no key exists) => Create a key

    Not the first time ? (a key exists) => Set the value of the variable to the value stored in the key

    Ending the game ? => Save score in the key before the user has exited.

    At worst, delay the exit so the score IS saved.

  • As I said above, even with sandboxing, I can get unresponsive tabs/entire browsers (Firefox & Chrome) plenty (not every day, but several times a month, probably weekly), and not just from crashed tabs but (presumably) desktop heap/browser instability issues.

    When that happens to me it is generally due to a plugin like Flash or shockwave, an old shit like that that some websites I consult from time to time is still using.

    Otherwise, tabs are pretty independent.

  • You need to load your score value on start of the game's execution.

    See this tutorial, I explained how to do it for several systems, including the score system.

  • In January 2017

    New releases

    The features listed here are only the "highlighted" features for each release. Check each release page to see the complete changelog and comments for each version)

    Be sure to keep updated to the

    most recent release of Construct 2

    If you think you have found a bug in Construct 2 you can report it in this forum BUT

    • Make sure it is not already a reported bug by searching through the "Bugs" forum
    • Make sure it is not a bug in your events, a difference between what you have coded and what you would expect
    • Make sure you're using the very latest version of Construct 2 (beta possibly, stable if this is the very latest release available)
    • Attach a .capx of the issue in the simplest manner possible (no 100+ events capx, no 10 mb capx)
    • Make sure to read Bug report requirements before posting and providing all the required informations (your configuration, the steps to use to reproduce the bug, any relevant information you can provide)

    It is really important since about 50% of reports aren't bugs which takes time out of working on Construct2 directly.

    Be responsible, help everybody by making sure it's not your events in cause first.

    NW.JS

    • v0.20.0 (Chromium 56) [Requires r217+]
    • v0.19.4 (Chromium 55) [Requires r217+]
    • Get the latest and current version and make sure you are using the appropriate Construct 2 release : https://www.scirra.com/nwjs

    Third part addons

    WebGL effects

    Blog posts

    No blog post this month

    Reminder

    Former retrospect

    As an added bonus, here is a list of the former "What you may have missed" posts for the year.

    Moreover as an another note, it did not happened in January but this 1st February : Construct 3 is announced.

    See you next month.

  • To get your expected result :

    Event 5

    Shift is down

    Bohater animation "Run" is NOT playing => Set animation "Run" to play

    Event 6

    Else

    Shift is NOT down

    Animation "Walk" is NOT playing => Set animation "Walk" to play

    Note that the first frame of your "Run" animation has a speed of 100, making it stick to that frame for the longest time.

    Put it at 10 and you will see your animation working easier.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    Good morning every one.

    You sound all excited, what is going on ?

    I'd rather bet on UK business hours.

    Although I don't know when the blog post is supposed to be released.

    It may be automated.

    Well, I still don't know what that is supposed to mean.

    I know what "populating an array with data" means. That makes "coding sense" to me.

    I still don't know what "populate C code as you work". It pops C code in your notepad when you are creating events ? If so, I find it a strange formulation.

    Zebbi: I'm sorry, but I still don't understand what "populate C code" is supposed to mean ?

    Export from the project format to a project in C, OK, I understand that, and true, Construct 2 can't do it. And it is nice if it is doing all the C dependencies for you as well, it's quite a feat.

    But " Impressively the new development environment also supports the ability to populate C code as you work" ? Isn't it some kind of marketing BS ?

    Populate C code where ? To what purpose ? CF3 is a C development tool ?

    I'm sorry, I just don't understand what that means.

    Don't get me wrong, I'm not bashing, it is just that with my knowledge of C (not too much, and now dating from quite a while) I just don't understand that part.

    As to XML / JSON, doesn't make a difference.

    You can take your project and host its sources on GitHub, so Construct 2 allows you to do it like CF3.

    "Run Your Games On A Mobile Device At The Click of a Button" => Preview over LAN. Can do it with C2

    "Written From Scratch" so was Construct 2. Another check.

    OK, at this time in the points you quoted, only "Multiplatform Support" and "Modular Design" in the way they are described are not possible in Construct 2 (although you can export multi-platform from C2 and can expand it with add ons).

    Not stirring the pot either, just pointing out the various points you quoted yourself as "C2 don't have it" but actually C2 does already for most of them.

    But you said it yourself, it is from a dating article possibly containing marketing jumbo about a demo. So who really knows.

    exported projects to JSON compatible with github?

    Nothing prevents you from taking your project folder to github.

    It is based on xml files, so it would work as well and you can upload your structure there.

    When you say "Compile real-time to C code" it means it exports your project to C ?

    What does the "real-time" has to do/really means here ?

    All compilations/exports are "real-time" because they are happening and provides you with an output anyway, aren't they ?

  • Here is an even "simpler" cap based on what you are asking.

    Comments explain what is going on.

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,402 followers

Connect with Kyatric

Trophy Case

  • 14-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x15
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x27
    Coach One of your tutorials has over 1,000 readers
  • x10
    Educator One of your tutorials has over 10,000 readers
  • x2
    Teacher One of your tutorials has over 100,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

23/44
How to earn trophies

Blogs