klabundee's Recent Forum Activity

  • When you use % and compare to 0, if = 0 it means that the number is divisible by 10 as you asked before.

    For example:

    10%10 if = 0 means that the first number is divisible by the second.

    Is score divisible(%) per 10? If yes you need to compare with 0 to know.

    Is the same as is the result of score/10 = a whole number?

  • To be honest, I don't know which's the best option.

    I also have 2 projects that would need remote database and I'm struggling about the server side security.

    Would be awesome to have a native mysql client plugin.

  • OK - so float(Score)%10 is the expression I need, but how do I complete the following:

    System > float(Score)%10 -> If the result is a whole number then do A, else do B

    Don't create a system expression... if you do this it will trigger every tick what means that it will test Score%10 every moment even without change the value of the score.

    What I suggest..

    In the same action that increment the Score value, create a sub event (That means that this sub event will only trigger when the Score changes)

    So it will be like:

    Trigger that increment Score

    + (Sub Event) If Score%10 = 0 -> ACTION

    + ELSE -> ANOTHER ACTION

    You only need float() if you are working with a string like I was in my example.

    If you are working with numbers, just do straight Score%10

  • If its an online game, keep it all on the server side..

    Otherwise if I "hack" the app I can change troop stats.

    So when it starts it sends a request to get this stats from the server and also you can compare after if the stats still "correct" between client/server.

  • I don't know this function that you are looking for but you can do as workaround:

    You can compare the result of score/10 with: round(score/10)

    If is not equal is because the result of score/10 is not a whole number.

    Edit:

    I found it.

    Just compare: score%10 and compare it with 0

    If score%10 = 0

    - Whole Number

    Else

    - Not Whole

  • After your question I did a research about it and found an answer that I was not expecting.

    gs.statcounter.com/screen-resolution-stats/mobile/worldwide

    These stats shows that 40% of the mobiles all around the globe uses 360x640.. I was expecting something like 480x854, 360x640 is 3:4 not even 9:16..

    Well.. I don't know... my projects are at least 480x854.

    I don't think that the resolution is a big problem for a small device like a smart phone, just make sure to use 3:4 or 9:16 and it will upscale to fullscreen without issues, its barely visible the changes from a native resolution.

    Edit: I found something interesting that may afect the result of these stats. I don't know where the data came from but if they collected it by using the browser resolution of each user as reference.. it does not show the real mobile device resolution. If you check your resolution on your mobile using bestfirms.com/what-is-my-screen-resolution it will show a very small resolution.. even if you device is 4k. So, just to say that if they collected this data using browser resolution, it does not show the real mobile resolution.

  • Let me understand it better...

    Is it an online game/multiplayer or is it a single player game or even local multiplayer?

    If it is an offline game just use all of it locally.. the only reason to use a online db is if you plan to add new soldiers or change their stats frequently. If you do it localy you will have to update the app everytime you change soldier/stats.

  • What about creating a plug-in for that.. Would be useful and you could see it on scirra store.

    Don't let it die.

  • Oh, now makes sense heheh keep going!

  • This forum should implement a 'like' button for msgs

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Very nice, it reminds me of that game that is a chicken crossing the street.

    > Keep going

    >

    Thanks my friend - how far did you get??

    Not so far actually haha, after the first waves it gets very hard.

    50 meters..

    The coins are not resetting after crash, if you double tap it will start again with the coins from last time.

  • Hahaha very nice

klabundee's avatar

klabundee

Early Adopter

Member since 26 Nov, 2015

Twitter
klabundee has 6 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies