Particle effect in 2D game

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
kAd
Posts: 45
Joined: Fri Jun 10, 2005 8:46 pm

Particle effect in 2D game

Post by kAd »

hi all,
I'm developping an isometric 2D game, i'm using draw2DImage() method to draw tiles .
now i want to add some particle effects.
the problem is that in 2D stuff is not attached to 3D camera (when the camera moves 2D stuff stay in the same place), but particle effects moves with camera !

this makes a problem because when the local player moves in my game i move the whole map and the player remains in the center of screen.
but if i put a particle effects and adjust the camera , particles looks like moving with the player ! :s

hope you understand what i mean :s

now i want to know if it's possible to attach a particle effect to a 2D tile (ie 2DImage) ?
[ Enzys http://enzys.online.fr ] : Un MMORPG français en dev (^_^)Y
Guest

Post by Guest »

YOu could try using a dummyscenenode above the 2D tile in question and making the particle a child of that - when you move the particles should stay at the location of the dummynode (which is invisible).

Also if you are using 2D be sure to use orthangonal projection
Post Reply