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 Professional Discussion / Particles...problem :-(

Author
Message
Gilfalas
23
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Luxembourg
Posted: 23rd May 2003 20:35
Hi

I am currently having a very strange problem

I am working with particles and I want to create a particle trail.

When I use Position Particles, I can see my Particles move nicely along the route I want them to.
How ever if I use Position Particle Emissions, suddenly it doesn't work anymore. I tried checking the position with Postition Particle X, and it seems like the position of the particle doesn't change anymore.
The silly thing about it is that I already wrote a program and it work fine with that one...

I am posting my code in case you want to try it.
Gilfalas
23
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Luxembourg
Posted: 23rd May 2003 20:42
Ah yes you might want to take a look at the _checkparticles subroutine... that's where it happens. I replaced only one Position PArticles by Position Particle Emissions for demonstration. You will see only 3 particles instead of 4

Attreid
23
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 23rd May 2003 21:39
I had the same problem when I was making a fps
it's odd
with the first patch of dbp, or the second, it worked fine

Bu$herie
How many civilians is he going to kill ? he's going to burn in hell, and I hope that his pain will make him inderstand !
Gilfalas
23
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Luxembourg
Posted: 23rd May 2003 23:18
I now found out that the coordinates of a particle effect will work differently wether you use Position Particles or Position Particle Emissions. In order to have the correct coordinates with Position Particle Emissions you have to divide your coordinates by the radius of the particle effect. Why I don't know, but I did that and now it works.

Login to post a reply

Server time is: 2026-07-11 13:58:06
Your offset time is: 2026-07-11 13:58:06