Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Imperial Scratchers: Lottery mini-game lets your players win in-game currency

Discussion in 'Assets and Asset Store' started by HemiMG, Mar 21, 2014.

  1. HemiMG

    HemiMG

    Joined:
    Jan 17, 2014
    Posts:
    911
    Imperial Scratchers​


    $screen1.png
    $screen2.png

    Imperial Scratchers is a lottery mini-game that your users can play in order to win in-game currency. It provides four different scratch cards. To integrate it into your game, you'll need to style the GUI dialog to match your game, as well as provide a storefront for the user to purchase tickets.

    The text in the graphics for the tickets is editable via the Photoshop files provided so you can match the payouts to the amount you wish to set and match the currency to the name of your in game currencies. The odds of winning and payout amounts are fully adjustable.

    The code was written in C# using Unity 4.3 and contains comments to guide you, along with the manual, to get the mini-game implemented into your game.

    Manual

    It is a good idea to read over the instructions for integration so you know what you are getting yourself into before you purchase. You can download the instructions in PDF form: Here.

    If you have any questions that are not answered in that document, feel free to ask them here in this thread.


    Demos

    A demo is available to see how the mini-game looks. The demo is almost straight out of the box, without any customizations so you'll get to see what you are working with and how much work will be involved in getting it into your game.

    Android
    I've created an Android APK that you can download to see how the game works on mobile. Get it by clicking: Here.


    Web Player
    There's also a web player version of the game located: Here.


    Purchasing
    I'll be submitting the asset to the asset store in a day or so, after I've had a chance to create all of the promotional material that is needed. For now, you can purchase it directly from the web player demo page.
     
  2. HemiMG

    HemiMG

    Joined:
    Jan 17, 2014
    Posts:
    911
  3. ibyte

    ibyte

    Joined:
    Aug 14, 2009
    Posts:
    1,043
    Have you thought about an update that uses uGui vs old OnGui?

    Can you tell me how to draw uGui over OnGui?

    As a work around I was trying to disable ticket game object, display my uGui dialog then re- enable the ticket but that seems to stop the ticket from working after that point.

    Edit: I figured out not to draw the ticket while uGUI was displayed. It would still be nice to have a uGUI only version of this package.
     
    Last edited: Jun 3, 2016
  4. HemiMG

    HemiMG

    Joined:
    Jan 17, 2014
    Posts:
    911
    I apologize for not getting back to you sooner. I was away from the forums for a long time and when I came back your post must have gotten lost in the sea of notifications. Imperial Scratchers came out around the time the new GUI was coming out. I remember investigating it then to see if an upgrade would benefit things and deciding it wouldn't work for some reason. I honestly don't remember what that reason was.

    I'm glad to see that you got the issue sorted out though. I may investigate a uGUI only version at some point in the future. Right now I'm struggling to get my next game out before my money runs out, so it might be a while. This business has its highs and lows, so hopefully I won't be stressed to the breaking point much longer. ;-)
     
  5. ibyte

    ibyte

    Joined:
    Aug 14, 2009
    Posts:
    1,043
    No worries, thanks for the reply.

    It has matured a lot since the early days.

    I just use a flag in the OnGui loop to decide if the ticket will be rendered or not. It was a simpler workaround than using what most people do which is a two camera set up and then adjusting the layers as OnGui always paints over everything else.

    Okay good luck with your next game!

    iByte
     
  6. ibyte

    ibyte

    Joined:
    Aug 14, 2009
    Posts:
    1,043
    Any chance you have time now for a uGUI version?
     
  7. HemiMG

    HemiMG

    Joined:
    Jan 17, 2014
    Posts:
    911
    Not quite yet. I'm still struggling so hard to get caught up on bills so the collectors will stop calling me. I feel really bad that it doesn't suit your needs though, so if you'd like, I can ask Unity if they can give you a refund. I don't know if there is a time limit on when those can be requested, but I'll ask for you.
     
  8. ibyte

    ibyte

    Joined:
    Aug 14, 2009
    Posts:
    1,043
    Hey, no worries, refund not necessary. I was just wanted to follow up to see where you are.
     
  9. LForward1

    LForward1

    Joined:
    Jul 22, 2019
    Posts:
    12
    Hey, man. Frankly speaking, I think it's the good idea to involve the users in this game using such way of winning the coins, like lottery. There is such question, can this lottery be hacked or maybe there are some ways how you can rise your chance for win, like there is in real lottery (I'm talking about the such sources, that generate the numbers for your lottery ticket, using hot and cold numbers, that they get doing analyst, like http://lottolytics.today)? If there is the way of hacking this lottery, then there is no even the need to think.