LaurenceBedford's Recent Forum Activity

  • You do not have permission to view this post

  • Not at this time.

    This might be temporary.

    If it isn't, please send an email to supportzds@construct.net with your username and a clear explanation of your issue.

    Error has gone thanks as of today" Thanks!

  • You do not have permission to view this post

  • Hi guys when i try to go to my notifications page it returns a server 500 exception, does anyone else have this?

  • Here's an example using 30 seconds

    https://www.dropbox.com/s/my90ee9q6t7gdfn/unixtimecheck.c3p?dl=1

    Change 30000 to 86400000, and check back tomorrow.

    Thanks I will look at it now and let you know

    EDIT:: I cant thank you enough newt -- 30 second version works fine -- i cant believe how this could be done so simply :) -- i was hardcoding it!!

    I will update this in 24 hrs time!

  • newt i have tried heres a pic

    but the checkIfNew day function seems to run even when the variables are equal? which i think might be a c3 glitch

  • Thanks Gillis and newt but am i right in saying newt your calculation - calculates if its been a full day since the user started playing?

    But I'm slightly confused on how to calculate the next day -- if you understand where I'm coming from :)

  • I would use "unixtime" and compare the milliseconds in a day.

    So if unixtime-86400000 => storedUnixtime, then you know its a day

    newt what do you mean by storedUnixtime as i cant seem to find that command?

  • newt I have tried with the browser js for example getFullYear() but it returns 0 what am i doing wrong

    i used this code Browser.ExecJS("getFullYear()")

    EDIT IT WORKS NOW

    BUT how do i see if its the next day as i want to call an api once daily so i dont call it every time the app opens how would i do this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi I want to be able to show the month and day in a text box formatted like this

    and then in another text box I would like to show the year

    but how do i do this as I have tried Date() but it returns everything which i dont want.

    Tagged:

  • dop2000 thank you so much it works now!!

  • What you are looking at is JSOn data you should use AJAX to request that URL and then use on AJAX completed parse JSON string to AJAX.lastData then set a variable to JSON.Get("money") and in this case it will set it to 264.44

LaurenceBedford's avatar

LaurenceBedford

Member since 3 Feb, 2017

Twitter
LaurenceBedford has 2 followers

Trophy Case

  • 7-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x3
    Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies