Draimond's Recent Forum Activity

  • I do add 1, problem is a add 1 every 0.1 seconds..

    I do expect fairly exact results, In fact after looking at the google play leader boards guide for developers, I've found that i need 0.00 seconds , ie, hundredths of seconds

    [quote:sdkokj4i]Time leaderboards present scores in hours / minutes / seconds / hundredths of a second format. You must submit scores as milliseconds, so 66032 would be interpreted as 1:06.03.

    1 minute 06 seconds 03 milliseconds

    They need times submitted as milliseconds. I don't think construct can handle milliseconds can it?

  • I'm not sure that I understood what your after, but:

    System | For each Square

    Square | InstanceVariableX = Girl.InstanceVariableX

    Square | InstanceVariabley = Girl.InstanceVariabley

    do -> Girl | Set position to Square (image point 0)

    Tried to make it look like it does in Construct2

    Arrays are awesome, but if your having trouble now... I wouldn't send you off to learn arrays even though they are ultimately better and easier to use

  • Posting here because I do need a solution.

    I got a racing type game that needs to run off milliseconds.

    Floating point stuff is giving me a headache (0.1 = 0.099etc).

    Can't use the, every x seconds because every 0.01 seconds doesn't play nice.

    [quote:4brktgh9]Time leaderboards present scores in hours / minutes / seconds / hundredths of a second format. You must submit scores as milliseconds, so 66032 would be interpreted as 1:06.03.

    Quote from Google Play Games Services for Publishing Android Games.

    If anyone has any experience with c2 to google play, handling hundredths of seconds, I'd love to hear about it.

    Also working on another game where I want to accumulate revenue over time regardless of whether or not the app is running.

    Correct me if I'm wrong but Construct 2 doesn't have native support for 'system time' ?

    I was just going to search for a unix time addon but got cold feet wondering if it would work on the million different types of android phone. I want to be able to work with hundredths of seconds and days all in the same equation. Elapsed time.

    e.g. this thingo will give revenue 3 times per second, and this thingo will give revenue about once every 3 hours and if the app is closed, it will check on startup, using last stored times, how much has been earned since last revenue gained and calculate/display the progress towards next revenue for each thingo.

  • For example the number 0.1 is exact in base 10, but is a recurring decimal in base 2. This means rounding can happen in unexpected places, even if you think you're dealing with exact numbers.

    ok... fair enough.

    was very scared, ty

    So how do you do it then?

  • Problem Description

    Having an issue with a play time timer. I'm adding 0.1 to a variable "Play_Time" ever 0.1 seconds.

    This way I can exclude menu time from game time by checking to see if the menu is open before it adds time to the play time variable. I need milliseconds because It's a time based racing survival game where seconds aren't going to be enough to separate players on a leader board. However I'm getting weird numbers.

    What I get

    Code

    The disabled code just caused the Play_Time to stay at 0.7.. not what I expected either.

    What I expected would happen

    well... you know.. 0.1 second would be a nice round 0.1... how could it possibly equate to anything else <img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked">

    Recreating this issue

    I had another interesting issue when recreating the capx for public viewing.

    I did the add 0.1 per 0.1 seconds thing with the play_time variable, then set a value in an array (used to record multiple scores) to Play_Time, which always gives a raw, uninterpreted value such as 1.99999999865 when viewed through a text object (set text1.text to array(1) ).

    Mean while I let construct interpret Play_Time directly without the array by viewing its value through a text object, the same way i did with the array, (set text2.text to Play_Time).

    I used a button object to take a snapshot of the values.

    • The array received the value Play_Time and displayed it as 14.999999999999963
    • The text object, however, displayed the value for Play_Time as 15
    • My value for time display which I got from the array and converted into time showed 0:1410 (this is in minutes)

    I get the sense that the .99999999963 is something theoretical. It knows it should be absolute e.g. 1.0 but it can be seen behaving as a decimal when viewed through an array... however the moment you reinterpret the value from the array it switches back into a whole value..... <img src="{SMILIES_PATH}/icon_e_surprised.gif" alt=":o" title="Surprised"> like my time display, the .999etc became a 1 again when called on to be a 'used value' as opposed to a 'stored value'... i'm freaking out, it's the matrix man!

    " Time " & int(Scores.At(Scores.CurX)/60) & ":" & int(Scores.At(Scores.CurX)) - (int(Scores.At(Scores.CurX)/60))*60 & (Scores.At(Scores.CurX) - int(Scores.At(Scores.CurX)) )*10

    Demo capx

    https://www.dropbox.com/s/dziksi3to3781 ... .capx?dl=0

    Affected Browsers

    Chrome

    Operating System and Service Pack

    Windows 7 64 SP1

    Construct 2 Version ID

    r216 64bit

  • I know this is an old post but it was the second result in my google search for automatic game saves for android.

    So i know that there is a static was to save games ( https://www.scirra.com/tutorials/526/ho ... -savegames )

    I've played around with saves and honestly I just haven't gotten the hang of them.

  • had a similar experience ...

    It's hard to make games with a game making program when you have so much trouble getting it on the market

  • to be honest the tutorial section for zip align is about 1 year old and surely by now there's a better way to do it.

    I didn't have any success when I tried that method about 6 months ago. After how ever many gigs worth of developer kits just for 1 or 2 tools for zip aligning, signing etc and a migraine... I gave up feeling thoroughly defeated.

    I would pay good money for a Construct 2 add-on that did it for me.

  • Dont you hate that... I spent an hour tring to fix this problem and within 2-3 min of posting i figured it out....

    Set UI layer to paralax 0,0...

    My bad

  • I'm really getting annoyed with the way objects still move around when set to anchor.

    I tried making a drag racer game and man does the UI shake around when the viewport is scrolling to the car which is moving at 4177px p/s

    Is there any way around this?

    i tried pinning the ui to the car but that means the car has to be in the middle of the screen always which looks too static.

  • I want to be able to start typing a name into an input-box and have something come up suggesting possible matches.

    It's for a gaming clan I'm in, so the names arn't going to come up with spell check link normal names would.

    E.g. (input box and I've typed in "Dr" and the names bellow are suggestions based on a list I've already added.

    __________________

    |Dr

    [Draimond]

    [DrGreen420]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I must be over thinking things and not seeing whats right in front of me. thank you

Draimond's avatar

Draimond

Member since 19 Mar, 2014

None one is following Draimond yet!

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies