Results 1 to 4 of 4
  1. #1
    coogle007's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    267
    Reputation
    18
    Thanks
    297
    My Mood
    Aggressive

    Recreating sprite

    Hi my sprite disappear after a game.
    You can say you need to recreate it.
    I do but it disappears.
    I insert it into my recreate font function

    i insert this

    Code:
    if(txBody == NULL)D3DXCreateTextureFromFileInMemoryEx(pDevice
    			,&_cBody,sizeof(_cBody),200,100,D3DX_DEFAULT,0,D3DFMT_UNKNOWN
    			,D3DPOOL_MANAGED,D3DX_DEFAULT,D3DX_DEFAULT,0,NULL,NULL,&txBody);
    	if(spBody == NULL)D3DXCreateSprite(pDevice, &spBody);
    
    	if(txFooter == NULL)D3DXCreateTextureFromFileInMemoryEx(pDevice
    			,&_cFooter,sizeof(_cFooter),200,65,D3DX_DEFAULT,0,D3DFMT_UNKNOWN
    			,D3DPOOL_MANAGED,D3DX_DEFAULT,D3DX_DEFAULT,0,NULL,NULL,&txFooter);
    	if(spFooter == NULL)D3DXCreateSprite(pDevice, &spFooter);
    
    	if(txHeader == NULL)D3DXCreateTextureFromFileInMemoryEx(pDevice
    			,&_cHeader,sizeof(_cHeader),200,100,D3DX_DEFAULT,0,D3DFMT_UNKNOWN
    			,D3DPOOL_MANAGED,D3DX_DEFAULT,D3DX_DEFAULT,0,NULL,NULL,&txHeader);
    	if(spHeader == NULL)D3DXCreateSprite(pDevice, &spHeader);
    And
    Code:
    spHeader->Begin(D3DXSPRITE_ALPHABLEND);
    					spHeader->Draw(txHeader, NULL, NULL, &pHeader, 0xFFFFFFFF);
    					spHeader->End();
    
    					spFooter->Begin(D3DXSPRITE_ALPHABLEND);
    					spFooter->Draw(txFooter, NULL, NULL, &pFooter, 0xFFFFFFFF);
    					spFooter->End();
    
    					spBody->Begin(D3DXSPRITE_ALPHABLEND);
    					spBody->Draw(txBody, NULL, NULL, &pBody, 0xFFFFFFFF);
    					spBody->End();
    But it disappears

    Code:
    		void ReFont(LPDIRECT3DDEVICE9 pDevice)
    {
    	if (g_pDevice != pDevice)
    	{
    		g_pDevice = pDevice;
    		try
    		{
    			if (pFont != 0)
    				pFont->Release();
    			/*pDevice->Release();*/
    			
    		} catch (...) {}
    		pFont = 0;
    		
    		KarraKa->FontCreate(pDevice);
    		
    }
    After font create i put the sprite code.
    I use xkarraka base for warrock.
    Thanks in advance for answer
    @Alessandro10
    @flameswor10 you use sprite can u help me?
    My last Hack D3d Chams/Esp/Opk/Telekill
    A me me piace 'o blues e tutt'e journe aggio cantà'
    pecchè so stato zitto e mo è 'o mumento 'e me sfucà'
    sono volgare e so che nella vita suonerò
    pe chi tene 'e complessi e nun 'e vò
    A me me piace 'o zucchero ca scenne dinto 'o cafè
    e cu 'na presa d'annice ma chi è meglio 'e me
    tengo 'a cazzimma e faccio tutto quello che mi va
    pecchè so blues e nun voglio cagnà'

  2. #2
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    Learn to use an easier base.
    Karakka base is too hard for you.

    Also, warrock and CA are different games so they're made differently.

    Also, your doing it wrongly.
    Last edited by flameswor10; 07-21-2011 at 04:06 PM.
    No I do not make game hacks anymore, please stop asking.

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

    OBrozz (07-21-2011)

  4. #3
    Dakota's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    8,332
    Reputation
    648
    Thanks
    1,680
    I believe wrong base?

  5. #4
    coogle007's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    267
    Reputation
    18
    Thanks
    297
    My Mood
    Aggressive
    I hoped in an answer not a observation
    My last Hack D3d Chams/Esp/Opk/Telekill
    A me me piace 'o blues e tutt'e journe aggio cantà'
    pecchè so stato zitto e mo è 'o mumento 'e me sfucà'
    sono volgare e so che nella vita suonerò
    pe chi tene 'e complessi e nun 'e vò
    A me me piace 'o zucchero ca scenne dinto 'o cafè
    e cu 'na presa d'annice ma chi è meglio 'e me
    tengo 'a cazzimma e faccio tutto quello che mi va
    pecchè so blues e nun voglio cagnà'

Similar Threads

  1. Sprite Smash
    By arunforce in forum General
    Replies: 1
    Last Post: 11-18-2007, 09:22 AM
  2. Direct3D sprites
    By arunforce in forum C++/C Programming
    Replies: 23
    Last Post: 09-16-2007, 01:18 AM
  3. first try @ sprites
    By envision00 in forum Art & Graphic Design
    Replies: 9
    Last Post: 10-21-2006, 09:30 PM
  4. Sprite Sig
    By jadedfrog in forum Art & Graphic Design
    Replies: 12
    Last Post: 08-22-2006, 12:28 AM
  5. rtp sprites
    By darkone1149 in forum Art & Graphic Design
    Replies: 0
    Last Post: 04-12-2006, 09:06 PM