TMAJA's Recent Forum Activity

  • I would keep the player in the middle and move the entire background / objects to the left.

    This way you don't need ScrollTo.

    Hi Rezagamertag,

    Interesting! Why would you take that route - I must be wrong in thinking moving many objects is more CPU intensive than just moving one?

    Thanks for your input!

  • Hi everyone,

    I guess this is more of a 'what's the best way' rather than 'How Do I' but here goes:

    I have a platformer style set-up except my character constantly moves forward (like flappy birds for example).

    Whats the best way to keep the character in the centre of the screen? I'm currently using 'Scroll to' on the player object - but it seems to produce some stuttery effects as the screen moves (not lag - everything else is smooth). Is this really the best way?

    Thanks!

  • I'm using CocoonJs.

    I've tested it and the issue appears across all of their compiler versions 2.0.1, 2.0.0 and 1.4.7: compiling for the Google PlayStore.

    The app has no problems saving or re-loading the data normally. But when I push a new update through the store it doesn't re-load the users scores.

    (Thank you so much for looking at this topic its a major headache for me).

  • "Usually you'll be able to change your project and old games will still load just fine. " - Versioning

    Ashley Sorry for dragging you in here; but I would be hugely appreciative if you could clarify this for me! Does the above mean the 'save' feature will survive the mobile update process? Is it better to use that instead of webstorage?

    Thank you

  • Pretty much exactly. It's strange though - someone must have a solution for this?

    When I'm reading through the documentation on saving the wording seems to suggest this shouldn't actually be an issue - does anyone know if I would be better swapping from webstorage to using the 'save' system?

    p.s thanks for checking this out brunopalermo

  • Hi brunopalermo,

    your answer is spot on - thank you very much! I wish I could give you some 'rep' for such a good answer (the qr code was a lovely touch)!

    Since you were so good with this problem would you consider thinking about this issue? I wouldn't usually cross post but this is a major headache for me.

    "https://www.scirra.com/forum/how-do-i-stop-the-players-score-being-lost_t108964"

    Thanks for your time

  • Hi everyone,

    so I have a mobile game which (no surprises) uses webstorage to save the users score.

    Problem: When I update the app via Google Playstore (or Apple App Store) the users score is lost!

    Am I missing something simple here or is this a limitation of web storage?!

    Thanks for any help at all - this is a major headache for me!

  • Hi everyone,

    I have a 'clicking counting' problem in which I want to prevent the use of multi-touch.

    Basically I want the system to only count one touch at a time, not two touches if the user presses both fingers on the screen at the same time.

    I know there is a way to do this using variables, but is this the best way?

    The app is for mobile.

    Thanks!

  • Well, that all depends on the platform, if you want it mobile CocoonJS, IntelXDK or NodeWebkit, you can check put their respective plugins, they probably have some kind of quit trigger

    A possible way would saving when loosing focus

    Hi Whiteclaws,

    Sounds like a great idea - how would I go about checking respective plugins? I've just had a look but I can't see a manual entry on that...

    >

    > > When do you change the score?

    > >

    >

    > Hi Newt!

    >

    > The user score changes literally all the time. Its a kind of banking app, so the user score is always going up.

    >

    > Any clues?

    >

    It was a rhetorical question.

    As in the the obvious thing you missed.

    I've really thoroughly thought about this and I'm just not seeing it? Maybe I'm just being an idiot! The score changes every tick...and surely I cant write to web storage every tick - that's going to be much worse more taxing on the hardware than writing every minute?

    Sorry if I've totally misunderstood!

    Hi, nice question

    I wonder how to do this too since lot of users exit with home button, open the task manager and swipe the app

    How about saving every tick but I think that will make the phone work very hard, isn't it?

    Hi ijoin,

    Thanks - yeah this has been something that's been bugging me for a while! I steered clear of saving every tick - I try to keep the number of every tick actions to a minimum anyway as they can be pretty hard on the limited resources on mobile - never mind if your actually writing to web storage.

    Thanks everyone!

  • TMAJA Have you tried the 'WebStorage' object?

    Hi Arthology,

    sorry, I wasn't clear in my original post!

    I don't have any problems actually saving the score - I'm using web storage and it all works smoothly.

    My problem is WHEN I save. Ideally I would like to save when ever the user exits the app! Unfortunately when I tried "On Layout End" this doesn't actually get called when the user closes the app via something like the home/back button on the actual phone.

    Currently I am saving the score every few minutes, which obviously is undesirable as it places unnecessary load on the phone hardware!

    Any ideas?

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When do you change the score?

    Hi Newt!

    The user score changes literally all the time. Its a kind of banking app, so the user score is always going up.

    Any clues?

  • Hi everyone,

    So I'm trying to save the users score even if they close the app with the home button (for example).

    I tried using "On end of layout" but that doesn't seem to get called if you close the app externally (via red cross, home button, getting a call ect).

    I have currently resorted to saving the score every 60 seconds - which isn't ideal at all.

    Does anyone know a better way of constantly keeping track of the users score even if they terminate the app unexpectedly?

    Thanks!

TMAJA's avatar

TMAJA

Member since 13 Feb, 2014

None one is following TMAJA yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies