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 / hyritcher i think it u i cant remember

Author
Message
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 20th Sep 2004 01:58
well hyritcher or somthing like that i havent got very good memory if i am right i think u told me about a demo version of a game your making called kalepian invasion and i downloaded it and said it was good bla bla bla and i was just wondering did u make it in dbc and if you did when you kill the enemys how did you make the explosions come up thanks

current projects
codename : tasgarad and discworld mysteries
life in the city watch
Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 20th Sep 2004 02:18
I believe your looking for this thread...

http://forum.thegamecreators.com/?m=forum_view&t=39080&b=8

- Merix
hyrichter
21
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 20th Sep 2004 04:08
Yes, Kalepian Invasion is made in DBC, as that's all I have right now.

The explosions are made by a textured plain put in place of the enemy when it's health points get shot away. Every time an enemy dies, I delete the enemy and then call a function that I named BlowUpMonster(MonstType,ObjNum) Here's the actual function if you want to look over it. I have object numbers 100 to 199 reserved for explosion effects. Whenever the function is called, it finds one of those objects that isn't in use and makes a plain out of it and textures it with the explosion effect.


Then to make the explosion disappear, I have a subroutine that is called every loop to check on the explosion effects. If the explosion exists, it scales it down until it gets small enough to just delete the object. The way I'm able to get away with using a plain for my explosions is that I always face it toward the player, so it will always look like a 3d object. Here's the _UpdateExplosion sub:



I hope this answers your question. If I need to clarify anything, let me know.

SandraD
20
Years of Service
User Offline
Joined: 30th May 2004
Location: Down on the corner, out in the street.
Posted: 20th Sep 2004 09:51
That's kind of clever hyrichter, I'll have to remember that trick!

S.

Any truly great code should be indisguishable from magic.
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 22nd Sep 2004 03:12
thanks hyritcher i will not copy paste it as it is taking from your code i will try to write it myself thank u

current projects
codename : tasgarad and discworld mysteries
life in the city watch

Login to post a reply

Server time is: 2025-05-24 17:49:00
Your offset time is: 2025-05-24 17:49:00