Detect dates, holidays and so forth

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I there a way of changing graphics to different holidays and so forth by date? Say you play the game on Halloween the app will change the graphics to that holiday. Is there an example of this on the site? I've seen this done before in other apps, but I don't know how it's done. Be pretty useful/cool to change the graphics for all the holidays.

    [SIGPIC][/SIGPIC]Please login to see this link.
    Please login to see this link.

  • I believe games like Angry Birds change their graphics in an update, so they wouldn't have all the graphics in the app at once. That's one way to go. Different versions for different seasons.

    You can always use the date-time object to check for a certain period and use different graphics accordingly. But I think this will make the app heavier and an extra hassle to code. I'd op for the Angry Birds method.

    Please login to see this link.

  • The Date-time object is the way to go as it's cross platform, just get the month and day and compare to the dates your after. Yet it will only be useful for set dates (or perhaps a date range eg. a Christmas skin for December). If you want to a set a specific date for a movable holiday, for example Easter, the date-time object won't help much. (By the way Easter occurs at the earliest, March 22 and the latest April 25, if you wanted to set a date range for a skin to be available). A cool feature you could integrate would be to offer unlockable skins that users could choose when ever they wanted :)

    Edited once, last by aenever (March 31, 2016 at 1:44 AM).

  • Thank you guys. What are the expressions used for this as I've never used the Time/Date object. aenever, could you post an example file please? I would only be using the major holidays. For Easter, a range would be the way to go I'd imagine. The others are always good to go with the dates.

    [SIGPIC][/SIGPIC]Please login to see this link.
    Please login to see this link.

  • Just adding some ideas for movable holidays -

    depending on how long you want your application to "live"
    you could store a table where to lookup holidays for each year:

    i.e. for next 5 years easter:
    Please login to see this link.

    Probably longer-lasting tables can be found online, with many additional holydays (depending on countries too).

    I think Google has a free API for a calendar where you could retrieve all needed infos in JSON or SOAP protocols
    but I've only used those services from webservers
    I guess would require some extra tweaking talking them from Fusion X)

    Otherwise, if easter is the only movable holiday you need, you could check above link to see how it gets calculated
    and replicate this taking avail of Date/Time object.

    Date-time is pretty straightforward,
    just tweaking with it will probably get you on the right track!

    month of ("Date and Time") = 12
    day of month of ("Date and Time") = 25
    >>> it's Christmas!

    a selection of my Fusion examples can be found Please login to see this link.

  • Hmmm,. I don't see a way of checking if date/time object = 12 for the month and day = 25 for the holiday Christmas. The expression you typed don't work. Can someone upload an example please.

    [SIGPIC][/SIGPIC]Please login to see this link.
    Please login to see this link.

  • Well, that was pseudocode typed out of memory XD

    Try this:
    Please login to see this attachment.

    change your computer clock to 25 December to see the string change in realtime
    (left-click the clock on your taskbar, change date and time settings, change date and time)

    You can implement all date and time functions just by rightclicking the object in the expression editor

    a selection of my Fusion examples can be found Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!