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 / i need particles

Author
Message
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 7th Mar 2004 00:15
can somone give me some code or somthin to make some particles like say fire come up behind the bullet and follow it pls

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 7th Mar 2004 01:11 Edited at: 7th Mar 2004 01:12
Make some code that checks the position of the bullet, then positions the special effect relative to the position of the bullet. For some particles look on here for DBC Particle System, kenmo made a really nice editor for a particle system that Hamish McHaggins did for a 20 line compo. If you don't want that then there are two ways you could go about doing the special effect:

1. Still do particles, just make them yourself. Texture a bunch of plains and throw them around in different directions.

2. Make one big plain and texture it with an explosion image and rotate it so it's always facing the player.

Crazy Donut Productions
Current Project: KillZone
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 7th Mar 2004 01:21
check out the "Monster Hunt" totorial

The second smartest person in the world, as of TODAY!
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 7th Mar 2004 13:23
i know you have to texture plains and move them whith the bullet and stuff and i checked the monster hunt tutorial but i still dont know how to go about it

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 7th Mar 2004 21:12
At the beginning of your code, make some ghosted plains and texture and hide them.

In your code, whenever there is a bullet active, place one of your textured plains at its position and shows it every tenth of a second or so.

Make a subroutine in your code that goes through a for next loop and checks if any of the flames plains are showing. Also have an array to keep track of the time that each flame is shows. Set that array equal to the timer() when the plain is positioned at the bullet and shown. In the for next loop, if timer()-the starting time of the plain > 1000 then hide the plain.

That was in words. You should be able to convert that to code, sorry if it was confusing at all. Just ask if you need anything else.

Xander Moser of Bolt Software
Firewall: Your Computer's First Defense - Real Time Strategy game
[href][/href]

Login to post a reply

Server time is: 2025-06-02 07:00:23
Your offset time is: 2025-06-02 07:00:23