Daily Reward Bb3

Discussion in 'Buildbox 3.0' started by landofgreendev, Oct 5, 2019.

  1. landofgreendev

    landofgreendev Boxer

    Joined:
    Nov 9, 2018
    Messages:
    79
    Likes Received:
    15
    Hi!

    I saw a thread regarding daily rewards but it seemed to only be applicable for bb2 - I was wondering if this is at all possible in BB3 as it currently stands?

    What I am trying to accomplish is that when the user opens the game for the first time, they are greeted with a small screen on the main menu UI which rewards them with a 'day 1' reward - say 20 coins - as soon as they collect the coins a timer starts which runs for 24hrs so when they open the game the next day they are rewarded with - say 50 coins - and it keeps going up and up until they are rewarded with an ultimate prize whatever that may be...

    Has anyone got any ideas on how to accomplish this? It would be a great addition to any game with a functioning coin shop. It would also help a great deal with retention as any publisher will look at your games retention.

    Any help is much appreciated!
     
  2. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    574
    Likes Received:
    220
    I tried Daily rewards before and it worked by setting Event Observer to a special UI (Daily Reward UI). So Event Observer will redirect to the Daily Reward UI and you go from there to claim the reward.
     
    landofgreendev likes this.
  3. landofgreendev

    landofgreendev Boxer

    Joined:
    Nov 9, 2018
    Messages:
    79
    Likes Received:
    15
    Awesome! Sounds good, have you got an example of this working?

    Which 'Event Type' did you use?
     
  4. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    574
    Likes Received:
    220
    Time Out is for TIME. 1000 = 1s. You have to calculate this if you want to use this for 12 / 24 hours daily reward. So the Special UI will show after a specific time frame you set with the Event Observer. :)

    It's best if you use Redirect. After X amount to plays to show the Reward.
     
    Blacklist likes this.
  5. landofgreendev

    landofgreendev Boxer

    Joined:
    Nov 9, 2018
    Messages:
    79
    Likes Received:
    15
    Awesome! I’ll have a play around with it!

    Thank you so much!
     
  6. Hanomax

    Hanomax Avid Boxer

    Joined:
    Aug 24, 2018
    Messages:
    156
    Likes Received:
    84
    If I put event observer with time out of 8 640 000 (24 hours), does it work properly, when restarting the app? And it still count time down, when app is not opened?
     
  7. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    574
    Likes Received:
    220
    Not really, the game state is not saved and event observer will not work for 24 hours.
     
  8. Scriv

    Scriv Boxer

    Joined:
    Oct 28, 2018
    Messages:
    50
    Likes Received:
    22
    I just googled javascript date and got this:-

    var date = new Date();
    var current_hour = date.getHours();
    var min = date.getMinutes();
    var year = date.getFullYear();
    var day = date.getDate();
    var month = date.getMonth() + 1;
    log (current_hour+':'+min+' of '+day+' of month '+month+' year '+year);

    if you paste that into the innit function of a node it'll read the date of the device... from there you can program some rewards... probably with the same loophole as candy crush... (if you change the date of your device it'll trick the app)
     

Share This Page