2retro's Recent Forum Activity

  • Guys, I cannot thank you enough - that's exactly what I was trying to achieve and it works perfectly now! Thanks for all the help.

  • Hmmm, still a bit confused I'm afraid. I see where I'm going wrong and the reason behind it but can't seem to get it right. How do I create the SaveScore Function for example? Is there a tutorial or capx file to compare against anywhere?

    Maybe you can help me out a bit more tomorrow if you have time.

    Thank you again for everything so far anyway.

  • Thank you once more for helping me. I *think* I get what you mean. I'll give it a shot and let you know...

  • OK, I've read through all of the links that were kindly provided to me now an have made some progress:

    [attachment=1:14bx10qx][/attachment:14bx10qx]

    I changed the bit with the arrow and that has resolved the NAN error and now retains the best score between sessions which is great.

    But now the best score continually increases along with each point scored. For example, your best score is 10. You play again and it tells you your best score was 10 but then, as you play and score more points, the best score increases by that amount of points:

    [attachment=0:14bx10qx][/attachment:14bx10qx]

    Now, I know I need to convert something to 'string' in the area marked with a question mark but I'm getting rather confused!

    If someone could perhaps tell me what I need to change (and to what) in the Scoring area to make it work correctly that would be really great.

    Thanks again.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, guys. I'll see if I can put some of this great info into practice and report back!

  • I have spent a couple of days now trying to integrate the webstorage option into my game to save a players best previous score.

    I've followed several tutorials and also read a lot of stuff on the forum which has helped me greatly but I have hit a wall now and could really do with a little bit of help please.

    Basically I have the actual score working correctly and the 'Best Score' adds up correctly too but when you exit and reload the game the best score just says NAN. I gather that means 'Not A Number' so it might just be something silly but I'm not sure what I need to change!

    Here is the relevant code from Construct:

    [attachment=1:172e58kg][/attachment:172e58kg]

    And here is the error message in game:

    [attachment=0:172e58kg][/attachment:172e58kg]

    If anyone can help me get this working it would be greatly appreciated. This is my first try at a Construct game so it's all a learning experience but I'm getting there!

    Many thanks.

  • Thanks again, woddakota but unfortunately the capx wouldn't work for me.

    However I was able to see what you have done which helped. I also downloaded the other 2 samples in this thread and between the 3 of them I think I now have a good understanding of how webstores work.

    The thing that still confuses me though is how to get the value from the 'Score' over to the 'Best Score' webstore when you die in the game? The game scores correctly now but I want it to remember your score when you die and also update that best score if you manage to beat it on another try... If anyone knows how to do that, please tell me!

    Thank you.

  • Thank you. Apparently I need a newer version of Construct to open that file so I'll update with the latest beta release and have a look.

  • Cool. Could you PM it to me or send me a link to download it please so that I can take a look?

  • I've been trying to figure out this WebStorage thing all day but am not having any luck getting it to work either so I was wondering if anyone could help please?

    I have a score working correctly on my game and I now just want it to remember your high score when you die and load it up next time you play to the right of your screen as your 'Best Score'.

    I want it to update itself as well if you beat your previous best score (If anyone has played Spashy Fish, that's similar to what I'm trying to achieve here with the score/best score).

    I'm sure it cannot be too difficult to do if you know your stuff but I just don't seem to be able to make it work despite following several tutorials on this site.

    Any help would be greatly appreciated or a capx that I can refer to would be, franky, awesome!

    Thanks

  • Well that was weird - I don't know how or why but I uninstalled/reinstalled the XDK program then went though it again adding one asset at a time and building and it worked every single time! In the end I had all the same assets as before added and managed to build in ARM and x86 no problem!

    No idea why as nothing was different but got there in the end. Only a full day nearly tearing my hair out then... lol

  • Thanks or the reply. I guess I should try and build it without adding any custom assets and see if that works then maybe add one at a time. I'll give it a shot and report back here.

2retro's avatar

2retro

Member since 20 Feb, 2014

None one is following 2retro yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies