RobertMKD's Forum Posts

  • Yes, you need to make the ground move in the opposite direction to make it look as if the car is moving.

  • I am now removing all data and then I save it again, and I don't know why but this reduced the data to 27mb. But that's still too much...

  • Yeah sure. Btw, may I ask what's FTL?

  • LocalStorage is a little buggy and sometimes it won't load all data.

    Read this thread:

    I am using the method of saving anything into a dictionary and then saving the dictionary as one item in the LocalStorage

  • Oh I understand your situation. Changing the animation names everywhere is a pain in the neck. Well, then you can simply put all animation names (strings) into an array and simply pick a random animation. That would be less work in your case.

  • How about you divide the number with 5 and then check the range?

    Example:

    12 / 5 = 2.4 (rounded to 4) ; now you check if the result (4) is higher or less than 5

    This however can be tricky and maybe a little ineffective as you have more ranges and need to check them all..

    Maybe first you should check if it is lower than 5, if it is not check if it is lower than 10 and if it is set the number to 10, and so on...

  • Oy lads

    I've got some problem with the code now and even when I was looking for a solution here on the forum, I have no idea how to fix it.

    I created a sprite with animations and now I want from my game to pick randomly 1-3 animations from that sprite and save it in the 3 buttons. I setted few variables for this sprite regarding what it will have but I don't know how to create that command "random" after each turn. Since this command is used for numbers and not the texts so I can't point it like "random(sprite.AnimationName)". Any ideas how to fix this?

    What I would do is name all animations as Anim1, Anim2 and Anim3, then when you play the animation simply type

    "Anim"&global_variable

    and that should work..

  • Are you sure you are saving and loading the data correctly?

  • That's all of it? I'm not clear what you have that's 40mb, but that isn't it.

    Yep, that's all of it. I'm confused as well, otherwise I wouldn't make this thread... (Btw, by reducing the size of one of the arrays, the data is now 35mb....)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've looked at it, but I don't see anything wrong..

    Here it is:

    {"c2dictionary":true,"data":{"Sound":0,"Level":44,"Charges":2,"Coins":940,"Diamonds":7,"cBonusAd_fac":25,"cBonusAd_gen":1,"dBonusAd_fac":1,"dBonusAd_gen":1,"achievementProgData":"{\"c2array\":true,\"size\":[14,3,1],\"data\":[[[1],[15],[110]],[[1],[30],[110]],[[1],[70],[110]],[[1],[30],[100]],[[1],[70],[100]],[[4],[1000],[100]],[[0],[100],[100]],[[0],[10],[100]],[[1],[1],[100]],[[0],[1],[100]],[[1],[5],[100]],[[0],[1],[100]],[[0],[1],[100]],[[0],[1],[100]]]}","achievementStatusData":"{\"c2array\":true,\"size\":[14,2,1],\"data\":[[[0],[0]],[[0],[0]],[[0],[0]],[[0],[0]],[[0],[0]],[[0],[0]],[[0],[0]],[[0],[0]],[[1],[1]],[[0],[0]],[[0],[0]],[[0],[0]],[[0],[0]],[[0],[0]]]}","rate_timeTarget":63628743853,"rate_init":1,"regenTimeTarget":63628581786,"RegenONOFF":1,"ItemStates":"{\"c2array\":true,\"size\":[2,6,1],\"data\":[[[0],[0],[1],[0],[0],[0]],[[0],[0],[0],[0],[0],[0]]]}","achievPopup":"{\"c2array\":true,\"size\":[14,1,1],\"data\":[[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[1]],[[0]],[[0]],[[0]],[[0]],[[0]]]}","tM_Level":4,"Stars":"{\"c2array\":true,\"size\":[111,1,1],\"data\":[[[0]],[[3]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]]]}","NoReset":"{\"c2array\":true,\"size\":[111,1,1],\"data\":[[[0]],[[1]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]]]}"}}

  • None of the arrays' elements is bigger than 1, it is either 1 or 0...

  • You simply delete one and upload another app. Btw, 50MBs are too much for a project, try tweaking it a little bit...

  • Actually, you don't have to pay at all, it's free.

    I am using it for free to upload and build my APK's... Why do you think you have to pay?

  • Nobody?... :/

  • Why not? Can you clarify what you do not like at PhoneGap?