RobertMKD's Recent Forum Activity

  • C'mon anybody?

  • It's crashing. Check your code and your images. If your images are too big they can crash the game.

  • That's not the problem. The problem is, after you close and re-open the game, the time needs to be updated, which means it has to be equal to the real time..

  • I want to use date and time in my project, but if I base it on the device time, the user can easily manipulate with it to gain extra stuff on the game or even bug it.

    So, I want to make a server time, one same for all users which cannot be manipulated.

    My question is, how do I do this and do I need to buy a host or something?

  • I will, after the next build. But if that's the case, how do I measure the time it needs to load?

    Btw, my data is loaded at the first layout which is a preloader one, and takes some time to load until it finishes loading and turns the next layout on.

    So, is the loading of data from LocalStorage included in this loading of the preloader layout?

  • Can somebody explain what do I have to do to simplify the rendering, sorry if I'm being such a noob :/

  • I have already done that, and the data is successfully loaded when previewing on browser (so it did before I even started using the Dictionary) , but it does not load on phone.

    I found out that the size of the data of the application is increased when I play the game for a while (when I actually save some data on the device), so it looks like there is a problem with the loading on the data when starting the game.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Okay, I will use a dictionary as you said, but will that solve the problem?

    I'm loading this data at the start and use it during the game..

  • Yes, LocalStorage saves data properly while in debug mode in browser, while here are part of the events for the updating of data when the game starts:

    All other items are loaded in the same way..

  • Sure, you can download it from here https://www.dropbox.com/s/3iicak6lvxz4w1m/kuatia_for_testing.capx?dl=0

    By the way, it's a nice design you've got there

  • Okay, so I have found several mistakes.

    First, you were checking for the LocalStorage data at the start of the "Game Over" layout. The data from LocalStorage is best to be updated at the start of the game (the first layout):

    Second, here you were setting the "high_score" item to a string "TotalDistance", I've done this:

    Third, you are reseting ALL global variables, including the high score, at the start of the "Game" layout. That way, you are actually erasing the highscore data which you need to display later.

    Instead of reseting all global variables, simply return back to 0 those that must be reseted, as an example I have set CurrentDistance to 0, but I guess there's more that need to be reseted:

    So, here's what I've got now:

    30 is the highscore, while 24 is my new score..

    Hope this helped

    edit: in the first image, the 'on item missing' event is not really necessary, so delete it..

  • For the windows in my project I am using a system that requires one global variable - window_Level, and an instance variable window_Level for every object (buttons, images etc.) that I am displaying in windows (add them in a family and make one instance variable for all).

    So, every time you open a window, raise the global window_Level by 1 and set the instance variable window_Level to the new level for all objects of that window.

    Once you click a button, check if the button instance variable is equal to the global.

    Also, don't forget to reduce the value when closing a window.

RobertMKD's avatar

RobertMKD

Member since 15 Apr, 2016

None one is following RobertMKD yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies