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.

Newcomers DBPro Corner / Explosions

Author
Message
Baconhead
15
Years of Service
User Offline
Joined: 22nd Nov 2008
Location:
Posted: 29th Nov 2010 18:13
I'm trying to make a mine explode on contact with the player. I've already got the damage reduction but no explosion effect.
nitrohaze
21
Years of Service
User Offline
Joined: 21st Apr 2003
Location:
Posted: 29th Nov 2010 18:53
Hi Baconhead

2d or 3d?
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 29th Nov 2010 21:07
Depends on the effect you want I suppose. Draw some frames up in a paint package, even expanding blobs can look quite good. Then, either make an animated sprite out of them, or texture a plain with them incrementally through the anim range. I think there is an explosion generator available here as well if you don't fancy trying to draw them.

http://s6.bitefight.org/c.php?uid=103081
Baconhead
15
Years of Service
User Offline
Joined: 22nd Nov 2008
Location:
Posted: 30th Nov 2010 17:50
sorry 3D
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 30th Nov 2010 18:14
There was a great article on this in a newsletter...

Here:
http://www.thegamecreators.com/pages/newsletters/newsletter_issue_46.html

There's a tutorial and links to the media etc. about three quarters of the way down. It can be used for 2D or 3D.

nitrohaze
21
Years of Service
User Offline
Joined: 21st Apr 2003
Location:
Posted: 30th Nov 2010 18:39
At work so cant knock up any examples for you but.

1. You could look at using the native particle commands, there are examples in the helpfiles (F1).

2. You could create a number of plains and throw them outwards at a given velocity for a period of time and fade out over their lifetime.

does this help or do you need an example?
Baconhead
15
Years of Service
User Offline
Joined: 22nd Nov 2008
Location:
Posted: 1st Dec 2010 18:10
I need an example
nitrohaze
21
Years of Service
User Offline
Joined: 21st Apr 2003
Location:
Posted: 1st Dec 2010 18:51
Here is a really simple explosion Ive quickly knocked up for you, there are things you can do to improve it but it should give you some ideas and a basic concept to move forwards with (only had 10 minutes) I hope it helps.




Kindest Regards
Baconhead
15
Years of Service
User Offline
Joined: 22nd Nov 2008
Location:
Posted: 2nd Dec 2010 02:14
this is perfect..thank you very much...but would i need to make a sprite to show the actual fire and smoke..again thanks.]
nitrohaze
21
Years of Service
User Offline
Joined: 21st Apr 2003
Location:
Posted: 2nd Dec 2010 09:30 Edited at: 2nd Dec 2010 10:01
Hi Baconhead,

There are a couple of ways you could add smoke, depending on how you want it to look and taking performance of your application into account.

What sort of effect do you want? you could use a plain with an image on, or perhaps semi transparet grey spheres that float upwards increase in size and become more transparent the higher they get. Visualise what you want and break it down. Have a go and see what you get.

If you really need some help Im more than willing to knock something up, but if you play with the code above you should be able to get somewhere.
Baconhead
15
Years of Service
User Offline
Joined: 22nd Nov 2008
Location:
Posted: 4th Dec 2010 00:47
This was a project for school and I ran out of time to implement the smoke in my game but I did get the explosion..thanks again.

Login to post a reply

Server time is: 2024-09-29 00:26:55
Your offset time is: 2024-09-29 00:26:55