Skip to main content
GameDev.net gamedev.net
🔒 Locked

particles engine

Started by citronrock Sep 21, 2005 at 9:29 AM 4 replies 1.1k views
Original Post
citronrock
citronrock
Hello , I've just finished to read the article 6 on nehe page . I've made a particle engine like you said and like the tuto. ( lesson 19 ) . But i have a problem , because i want to display in the same time 2 differents things . I want for example a rain cloud on the left of the screen and in the same time , a water fontain near the ground . It's sounds very easy....but i don't know why, if the cloud is on , the fontain is off . The best thing will be to do just on particle engine for that , i tried to make 2 different ...it's not very good.... can you help me please ? If you don't understand what i mean i can send you the code . Thank you !
adam17
adam17
just design a class that can hold all of the properties of the emitter. now you can make several of the classes and place them wherever you want and change their properties individually
citronrock
citronrock


the properties of the emitter ?? ok, can you give my a example please , thanks a lot ?
skow
skow
There are lots of different properties you can give an emitter; it's really up to you what you want to do.

Some I use are: gravity, starting speed, starting speed variance, direction, direction variance, emission rate, emission type, location, blend type, and so on.

It’s up to you to design it to fit your needs.
citronrock
citronrock
i 've something like this, ok doesn't matter, it's not working, my class is allright, there is no more need .
i want just to create different objetcs in the same time , without create an oter particle class.
skow
skow
Then you need to make some sort of emitter manager, that will take care of instancing multiple emitters at the same time.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.