PhoenixNightly's Recent Forum Activity

  • If you put an option to play again and then tell it to load the Game layout it would restart the game loop for that layout. Basically restarting the game. Since you have it to go to a different layout for the GameOver' the 'Game' layout is unloaded. Loading it back in would restart it. Also if you don't want the global variables to carry over remember to tell it to reset them.

  • Yup you can see here::

    https://dl.dropboxusercontent.com/u/128 ... index.html

    I don't just give you the .capx because I don't want to stifle your learning. It will strengthen your bug detection. Now as I said earlier if you run it in different browsers the information doesn't transfer meaning you set a 'Best Distance' in Chrome. Then that is the Best Distance in Chrome open in IE or Firefox it would be zero out for them.

  • Actually you know what you don't need the else statement. Remove it and remove the variable reset and layout reset in updating the Best Distance cause when it come out it will do it anyway.

    Cleaner version::

    [attachment=0:2nx1982b][/attachment:2nx1982b]

  • Okay I loaded up and it worked for me you might what to make sure the text box is large enough cause if not it won't display correctly.

    [attachment=0:3cyz30yd][/attachment:3cyz30yd]

    [attachment=1:3cyz30yd][/attachment:3cyz30yd]

    Also make sure you round up when you store the value. I forgot to do that.

  • Is it possible to see the rest of the code to see what is going on?? Everything looks right now. Let us see how you are tallying up the distance.

  • Yea I was just stating in case that they were heading that route and be like me and be like...umm its not working how I intended. Best to know now then develop and find out later. So if that is what they are planning to do they already know.

  • I see it now. You are just putting the value of the webstorage back into itself its suppose to be set Local key BestDistance to global variable BestDistance.

  • Also why isn't it Italicized here??

    [attachment=0:1zqcrbnw][/attachment:1zqcrbnw]

  • One thing I notice is that it isn't comparing if the TotalDistance beat the BestDistance. It automatically set the bestDistance with the TotalDistance. So regardless if they beat it or not the TotalDistance overwrite the BestDistance.

    The only problem with the Webstorage is that it isn't consistant if you wanted it to be a webgame. The best way someone explained it to me is Webstorage is kind like cookies. So for me it didn't work as planned being that I wanted to host the game on my webspace and people can play and try to beat each other score. But it doesn't work that way. I was told to integrate clay.io

  • Great work!! +1 on the ducking.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Great work

  • Wow this look FANTASTIC!! The style is so 70's I want to say for some reason. Great developer studio intro . I am using Chrome and it ran smoothly for me.

    I tested in IE 11 for you and the most I got was a quick glimpse of the load icon then it went black. I waited 2 min it didn't load at all .

PhoenixNightly's avatar

PhoenixNightly

Member since 10 Feb, 2014

None one is following PhoenixNightly yet!

Trophy Case

  • 10-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

12/44
How to earn trophies