Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Weapon flash

Author
Message
Jna99
19
Years of Service
User Offline
Joined: 3rd Nov 2005
Location: Portugal
Posted: 7th Oct 2006 00:12
Does anyone knows how to do it? my trick was to paste the texture in a plain and hide it, then when I clicked in the leftmousebutton it appear and when I released it would desapear...problem is while pressing....any good strategies?
Sephnroth
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 7th Oct 2006 03:27
you need to animate the texture. draw a couple of different flashes and load them all up. Whilst the fire button is held down, texture your plane with one of them and if a certain amount of time has passed change the image. Here is an example, assuming you loaded four different textures to animate:



assumes that MUZZLE_PLANE is a constant holding the ID of your plane object. All the code i just wrote off top of my head so take it with a pinch of salt, but thats one possiable way of animating a muzzle flash.

Jna99
19
Years of Service
User Offline
Joined: 3rd Nov 2005
Location: Portugal
Posted: 7th Oct 2006 16:17
Thks but Ive found another way..

Login to post a reply

Server time is: 2024-11-19 08:23:02
Your offset time is: 2024-11-19 08:23:02