gordonramp Posted January 31, 2010 Share Posted January 31, 2010 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. Quote AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64. Link to comment Share on other sites More sharing options...
macklebee Posted January 31, 2010 Share Posted January 31, 2010 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? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
gordonramp Posted January 31, 2010 Author Share Posted January 31, 2010 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. Quote AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64. Link to comment Share on other sites More sharing options...
macklebee Posted January 31, 2010 Share Posted January 31, 2010 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... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
gordonramp Posted January 31, 2010 Author Share Posted January 31, 2010 Nice, thanks Mack. Quote AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64. Link to comment Share on other sites More sharing options...
Recommended Posts
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.