Search Unity

GUI Virus Effect Script

Discussion in 'Assets and Asset Store' started by GibTreaty, Jan 31, 2011.

  1. GibTreaty

    GibTreaty

    Joined:
    Aug 25, 2010
    Posts:
    792

    You can buy this on my site if you don't want to use Unity's Asset Store.
    Web Site

    This is on the Asset Store for $5.

    This is a script for Unity3D that is meant for, but not limited to, computer-themed games. It shows GUI Window popups that have different effects to simulate annoying virus popups.

    The popups have 2 effects that can be toggled on or off at any time...

    1. Run from cursor - If the cursor touches the popup window, the window will move away.
    2. Shake - The window shakes all over the screen.

    A few others things this script is able to do...


    1. Stay On Screen - A toggle-able option to keep the window from going off the screen.
    2. Multiple Popups - You can have multiple popups appear on the screen. You can specify how far apart each popup appears.
    3. Close Button - You can change whether the window has a close button at the top right.
    4. Yes, No, Ok - Depending on the type of window you choose (Error or Warning), the buttons will be displayed.
    5. Buttons with a purpose - You will be able to set what function is called when the Yes, No or Ok buttons are pressed.
     
    Last edited: Jan 2, 2015
  2. Dreeka

    Dreeka

    Joined:
    Jul 15, 2010
    Posts:
    507
    Nice :)
     
  3. GibTreaty

    GibTreaty

    Joined:
    Aug 25, 2010
    Posts:
    792
    I forgot to mention that this is on the Asset Store, silly me.
     
  4. ColossalDuck

    ColossalDuck

    Joined:
    Jun 6, 2009
    Posts:
    3,246
    Lol, this was funny.
     
  5. Coburn64

    Coburn64

    Joined:
    Feb 6, 2011
    Posts:
    30
    Would be perfect for a Game Over screen. :p
     
  6. AndrewGrayGames

    AndrewGrayGames

    Joined:
    Nov 19, 2009
    Posts:
    3,821
    This could be used with awful graphics to make the most (?)hilarious Unity game evar.

    Kudos, though, I'm particularly interested in the full-screen quaking.
     
  7. Grady Lorenzo

    Grady Lorenzo

    Joined:
    Jan 18, 2010
    Posts:
    407
    Is it possible that I only get the line that closes a window? I tried making a button that does this, but it doesn't want to work...
     
  8. GibTreaty

    GibTreaty

    Joined:
    Aug 25, 2010
    Posts:
    792
    Ah! I thought I would be notified by email when I get new replies on here. I guess I was wrong.

    I'll tell you for $5! Just kidding...
    For my windows, I have them a main array that holds a certain class. For each instance of that class there is a new window and it is added to the main array. Once I remove it from the array, the window disappears. The window only appears because the class exists.
     
    Last edited: Feb 20, 2011
  9. GibTreaty

    GibTreaty

    Joined:
    Aug 25, 2010
    Posts:
    792
    You can now buy this on my site if you don't want to use Unity's Asset Store!
     
  10. GibTreaty

    GibTreaty

    Joined:
    Aug 25, 2010
    Posts:
    792
    This is now free. It is rather old and outdated now. Feel free to pick it apart!