cusor particle

Posted By: zeusk

cusor particle - 11/09/09 15:42

hey guys does anyone know how to make a particle function that follows the cursor arrow?I've tried but every thing i do doesnt work!Thanks
Posted By: Espér

Re: cusor particle - 11/09/09 15:51

look into the Forecast..

they will bring new 2D features with the next update... 2D Particles are inlcuded..

So wait a bit ^^
Posted By: zeusk

Re: cusor particle - 11/09/09 16:06

so you mean i cant make particles follow the cursor like how you would with a space ship? cry
Posted By: Widi

Re: cusor particle - 11/09/09 18:27

You can use vec_for_screen for that.
Posted By: zeusk

Re: cusor particle - 11/09/09 21:55

Originally Posted By: Widi
You can use vec_for_screen for that.

i'm new to lite-c how would i do that because i've been tryin to implement the particle code from aum 78 to my cursor some kind of way but i dont know how.
Posted By: Scorpion

Re: cusor particle - 11/11/09 11:26

you define a vector, set it to the mouse x and y and the z to the distance, where the particles will be spawned. then you pass it to the vec_for_screen function and at the last step you use it as the spawn position in effect().

Code:
VECTOR prtPos;
vec_set(prtPos, vector(mouse_cursor.x, mouse_cursor.y, 50));
vec_for_screen(prtPos,. camera);
effect(yourFunc, 123, prtPos, nullvector);



hope this helps =)
Scorpion
© 2024 lite-C Forums