Jump to content

Recommended Posts

Posted

I've used LoadTexture() and DrawImage() to get an image to the screen. But I want to toggle it on and off. I can't find a FreeImage() command so what can I use to hide or delete the image?

Thanks.

AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64.

Posted

I've used LoadTexture() and DrawImage() to get an image to the screen. But I want to toggle it on and off. I can't find a FreeImage() command so what can I use to hide or delete the image?

Thanks.

 

are you using the Fliphook for an object script? or are you just talking about in a gamescript?

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Posted

I'm using Fliphook.

 

if KeyHit(KEY_K)==1 then                
AddHook("Flip",DrawOverlay)      
end

 

I can turn it on using this and I'm wanting to toggle it on and off.

AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64.

Posted

if KeyHit(KEY_K)==1 then 
     if showimage==0 then
         AddHook("Flip",DrawOverlay)      
         showimage=1
     else
         RemoveHook("Flip",DrawOverlay) 
         showimage=0
     end
end

 

something similar to this is what i am using...

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...