Results 1 to 3 of 3
  1. #1
    XiAtomikiX's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    141
    Reputation
    22
    Thanks
    31

    Scrolling Text Mw3 Partially Finished

    Okay here is a Video of my scrolling Text. As you can see this Sucks horribly it keeps flashing and half the time it dont scroll right. Im using Insanes menu src along with some src from kenshin and a few Others


    Here is some Src code on how I did this.
    under DrawOptions()
    IsMenuOn()
    Code:
    atomHud =!atomHud;	        
    DrawRotatedPic_ ( ptr,0, atomY, AtomW, 50, 0, BG_COLOR, shader ); 
    // Draws shader on the bottom of the screen for your screen size.
    
    // i also have code in the DLL_Main to grab your screen size im sure thats 
    not important to this since everyone knows how to do that
    Code:
    in the DLL_Main i put this
    CreateThread ( 0, 0, ( LPTHREAD_START_ROUTINE ) AtomikBar, 0, 0, 0 ); 
    
    // Then I have 
    
    void AtomikBar()
    { 	
    	
    	int atomTxt = 925;
    	int atomMe = atomTxt;
    	int newAtom = atomY + 37;
    	
    	
    	for(;;)
    	{ 
    		if(atomHud){
    			if(atomMe > 10)
    			{
    				DrawText(false, atomMe,newAtom, RegisterFont_( FONT_BIG ), GREEN, "AtomikHacks Multi Tool/ Kenshin13,AtomikB34st,and Many Others, Join Atomik**********");	
    				atomMe = atomMe - 5;
    				//atomMe--;
    			}
    			else
    			{				
    				atomMe = atomTxt;
    			}
                
    		} 
    		Sleep(4);
    		}
    	
    }
    I used Sleep(4) b.c this was the only way the text was visible long enough to read. but now the game either crashes after the line finishes or i have to keep opening and closing menu for it to work right. Or it just crashes all together.
    but if i put Sleep(20) it works fine but i dont see text it comes on for like a milisecond then disappears and moves and repears with it at 4 it flashes so quickly it looks like its not flashing(kinda)

    if anyone has some suggestion on what I could Try please do help
    Last edited by XiAtomikiX; 02-15-2013 at 05:48 PM.

  2. #2
    mwxplayer's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    hax
    Posts
    584
    Reputation
    10
    Thanks
    2,663
    My Mood
    Doh
    there's a advertise in youtube -.-
    Code:
    int xPos = ???;
    int YPos = ???;
    
    void hax()
    {
    
    xPos++;
    yPos++; 
    Sleep(500);
    
    if (xPos == ???? && yPos == ???) //if The Text is at the position where the Scrolling text is ending
    xPos = Default Pos;
    yPos = Default Pos;
    
    }
    
    DrawText (  xPos , yPos ,???????????????????? );
    hax();
    Last edited by mwxplayer; 02-16-2013 at 02:09 AM.

  3. The Following User Says Thank You to mwxplayer For This Useful Post:

    XiAtomikiX (02-16-2013)

  4. #3
    XiAtomikiX's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    141
    Reputation
    22
    Thanks
    31
    Quote Originally Posted by mwxplayer View Post
    there's a advertise in youtube -.-
    Code:
    int xPos = ???;
    int YPos = ???;
    
    void hax()
    {
    
    xPos++;
    yPos++; 
    Sleep(500);
    
    if (xPos == ???? && yPos == ???) //if The Text is at the position where the Scrolling text is ending
    xPos = Default Pos;
    yPos = Default Pos;
    
    }
    
    DrawText (  xPos , yPos ,???????????????????? );
    hax();
    hey good find. I did alot more then just what you put. Kenshin helped a little by saying call it from inside an engine function not using CreateThread
    so i removed that and Declared the AtomikBar and then did something like this.
    Code:
    // under IsMenuOn I added this
    atomHud =!atomHud;	        
    DrawRotatedPic_ ( ptr,0, atomY, AtomW, 50, 0, BG_COLOR, shader );
    
    if(atomHud)
    DrawText(false, atomMe,newAtom, RegisterFont_( FONT_BIG ), GREEN, "AtomikHacks Multi Tool/ Kenshin13,AtomikB34st,and Many Others, Join Atomik**********");	
    		
    // at AtomikBar()
    		
    void AtomikBar()
    { 
    if(atomMe > 10)
    
    atomMe = atomMe - 5;
    else		
    atomMe = atomTxt;			
    Sleep(10);
    }
    all the other variables are now global it seems to work NO FLASHING!!

    Edit: ow I fixed it totally now it works great doesnt crash,no laggy,and it comes up with the menu disappears when menu is off.

    ---------- Post added at 09:32 AM ---------- Previous post was at 09:14 AM ----------

    here is a New Video its still processing so give it a min
    Last edited by XiAtomikiX; 02-16-2013 at 08:30 AM.

Similar Threads

  1. [Help Request] scrolling text bar at the bottom of the screen - question
    By Twizzy in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 1
    Last Post: 02-20-2012, 07:12 PM
  2. Scroll text up down :(
    By Deus Ex in forum Visual Basic Programming
    Replies: 6
    Last Post: 11-17-2011, 11:09 PM
  3. [Help]How to make scrolling text?[solved]
    By Bombsaway707 in forum Visual Basic Programming
    Replies: 18
    Last Post: 01-07-2011, 03:55 PM
  4. [Help]Text File scroll down
    By ppl2pass in forum Visual Basic Programming
    Replies: 3
    Last Post: 03-19-2010, 12:18 PM
  5. Scrolling Text [TUT]
    By Zoom in forum Visual Basic Programming
    Replies: 8
    Last Post: 11-08-2009, 03:52 PM