Thread: Alpha glow

Results 1 to 4 of 4
  1. #1 Alpha glow 
    Google it ffs

    Reich's Avatar
    Join Date
    Mar 2011
    Age
    27
    Posts
    832
    Thanks given
    120
    Thanks received
    174
    Rep Power
    105
    declare:
    Code:
    boolean loginFormAlphaMax;
    int boxAlpha = 0;
    Code:
     
    /**
    					  * glowing handler for login box username
    					  */
    					 boxGlow = new Sprite("Login/texthover");
    					 int boxGlowX = boxX + 26;
    					 int boxGlowY = boxY + 38;
    					 if(inNewHoverArea(boxGlowX, boxGlowY, 197, 41)) {
    						 //boxFade -= 4;
    						 if(boxAlpha <= 0) {
    							 loginFormAlphaMax = false;
    						 } else if(boxAlpha >= 75){
    							 loginFormAlphaMax = true;
    						 }
    						 if(!loginFormAlphaMax) {
    							 if(boxAlpha >= 75) {
    								 loginFormAlphaMax = true;
    							 }
    							 boxAlpha = boxAlpha + 5;
    							 boxGlow.drawSprite1(boxGlowX, boxGlowY, boxAlpha);
    						 } 
    						 if(loginFormAlphaMax) {
    							 if(boxAlpha <= 0) {
    								 loginFormAlphaMax = false;
    							 }
    							 boxAlpha = boxAlpha - 5;
    							 boxGlow.drawSprite1(boxGlowX, boxGlowY, boxAlpha);
    						 }
    					 }
    Code:
    public boolean inNewHoverArea(int x1, int y1, int width, int height) {
    		return (this.mouseX >= x1 && this.mouseX <= x1 + width && this.mouseY >= y1 && this.mouseY <= y1 + height);
    	}
    
    	private boolean isNewAreaClicked(int x1, int y1, int width, int height) {
    		if (super.saveClickX >= x1 && super.saveClickX <= x1 + width
    				&& super.saveClickY >= y1 && super.saveClickY <= y1 + height) {
    			return true;
    		}
    		return false;
    	}
    Programmers are machines that convert caffeine into code
    Reply With Quote  
     

  2. #2  
    Registered Member
    jordan641's Avatar
    Join Date
    Apr 2010
    Posts
    1,809
    Thanks given
    70
    Thanks received
    128
    Rep Power
    189
    nice maybe wanna give a bit more detail on what this does
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    3lv3n snip3r's Avatar
    Join Date
    Jan 2011
    Posts
    916
    Thanks given
    48
    Thanks received
    114
    Rep Power
    84
    It makes the sprite that you choose fade in and out to make a blinking effect.
    Spoiler for RuneScape:

    [Only registered and activated users can see links. ][Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #4  
    Google it ffs

    Reich's Avatar
    Join Date
    Mar 2011
    Age
    27
    Posts
    832
    Thanks given
    120
    Thanks received
    174
    Rep Power
    105
    Quote Originally Posted by 3lv3n snip3r View Post
    It makes the sprite that you choose fade in and out to make a blinking effect.
    Exactly
    Programmers are machines that convert caffeine into code
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Glow
    By Melrpm in forum Application Development
    Replies: 0
    Last Post: 03-27-2012, 02:15 AM
  2. Replies: 3
    Last Post: 09-21-2011, 06:43 PM
  3. Glow help.
    By OmfgItsDom in forum Graphics
    Replies: 2
    Last Post: 02-22-2010, 09:24 PM
  4. Glow psd
    By Joe in forum Tutorials
    Replies: 2
    Last Post: 07-20-2008, 07:22 PM
  5. A D V A N C E D Glow
    By Mr Chainsaw in forum Showcase
    Replies: 11
    Last Post: 04-25-2008, 05:16 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •