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 / Easier way to do destuctable terrain??

Author
Message
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 28th Aug 2007 20:03 Edited at: 28th Aug 2007 20:05
Hi all,
is there an easier way to do destructable terrain? all i ever saw that did this was the example "tank" game......
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 28th Aug 2007 21:01
Nope, that is always difficult

Your signature has been erased by a mod because it was rubbish.
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 28th Aug 2007 21:03
man!!
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 28th Aug 2007 22:19
Not nesecerily difficult. (Gah, my spelling!) If you set the matrix height at the point that you want destryed to a lower position than what it was before...

Acording to Grandma, I am now enemy of the evil republic, who captured Paris Hilton and couldn't manage it.
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 28th Aug 2007 23:30
Quote: "Not nesecerily difficult. (Gah, my spelling!) If you set the matrix height at the point that you want destryed to a lower position than what it was before..."

well i tryed that and it doesnt work if you update the matrix every loop.....you kill the fps.
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 28th Aug 2007 23:53
Update the matrix every loop!You don't need to do that!
I got bored, so I wrote a code demonstrating my idea, couple it with an explosion or whatever and you have a pretty nice effect.


Acording to Grandma, I am now enemy of the evil republic, who captured Paris Hilton and couldn't manage it.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 29th Aug 2007 16:06 Edited at: 29th Aug 2007 16:08
I've attempted to do a circular crater, added Bamber's normalisation too



@INH
You put UPDATE MATRIX in the loop!

Your signature has been erased by a mod because it was rubbish.
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 29th Aug 2007 16:56
hmm.. thanks,i'll defenantly be usin' those.
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 29th Aug 2007 19:27
Quote: "You put UPDATE MATRIX in the loop!"

Only because I wanted each individual crater to show up one at a time. Had I wanted them all at onve I would have used your method.

Acording to Grandma, I am now enemy of the evil republic, who captured Paris Hilton and couldn't manage it.
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 29th Aug 2007 19:29
Hey OBese87, you're a Firefox user aren't you? Do downloads seem to happen a lot slower since you switched to firefox?

Acording to Grandma, I am now enemy of the evil republic, who captured Paris Hilton and couldn't manage it.
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 29th Aug 2007 19:31
not for me
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 29th Aug 2007 19:50
Hmmm... Oh well.

Acording to Grandma, I am now enemy of the evil republic, who captured Paris Hilton and couldn't manage it.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 29th Aug 2007 20:47 Edited at: 29th Aug 2007 20:48
No, faster if anything.
Make sure you don't have both FireFox and IE running simultaneously, they slow the computer down.

Your signature has been erased by a mod because it was rubbish.

Login to post a reply

Server time is: 2025-06-02 06:21:09
Your offset time is: 2025-06-02 06:21:09