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.

DarkBASIC Discussion / make an explosion

Author
Message
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 14th Jan 2005 02:37
i have seen in various games that have been made in dbc that u can do explosions when things get hit i was wondering could i do that in my game so it looks like fire coming out of the gun when i shoot it (its an fps) so could anyone explain how to do it for me

current projects
codename : tasgarad
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 14th Jan 2005 03:43
Yes... For the flash at the end of a gun when fired:
First you need to make 2 flash textures. Then make a plain and position it infront of your gun. Texture it with your first texture like this:
Then you need to increase texture to give the effect of animation but stop it from going over the number of images. Like this

There. The same apllys for explosions except you can position the plain where ever you want it and you will need a full explosion animation split up into separate images for it to work.

P.S Don't forget to make the black backgorund of the images transparent.


Thanks to Animeblood for the Logo!
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 15th Jan 2005 02:08
err i think i have done it right i just copy pasted your code and did what u said but it doesent work pls help


current projects
codename : tasgarad
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 15th Jan 2005 09:55
To see how to do explosion effects I have made an example in this thread:

http://forum.thegamecreators.com/?m=forum_view&t=24518&b=6

It should be fairly easy to figure out if you have any DB experience.

Xander Moser - Bolt Software - Firewall
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 15th Jan 2005 18:24
I never said it work just by copy pasting! It was just an example to get you going.


Thanks to Animeblood for the Logo!
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 15th Jan 2005 19:47
thanks bolt but it is a 3d explosion whith a shockwave in it and i am not sure how to change it to an explosion so it looks like it comes out of the gun

current projects
codename : tasgarad
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 15th Jan 2005 20:13
just look at what ive given you and adapt it.


Thanks to Animeblood for the Logo!
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 15th Jan 2005 20:17
i tried whith the code above could yout tell me what i have done wrong

current projects
codename : tasgarad
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 15th Jan 2005 20:49
show me what youve done then i can help you more


Thanks to Animeblood for the Logo!
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 15th Jan 2005 21:00
okay i did this but i have a lot more explode textures i just wasent sure how to make it work with them


current projects
codename : tasgarad

Login to post a reply

Server time is: 2025-05-24 16:59:00
Your offset time is: 2025-05-24 16:59:00