[TUTORIAL]How to add particles to player

Posts 1–9 of 9 · Page 1 of 1
[TUTORIAL]How to add particles to player
Go to Player.as

Go to line 542 and you should see this

make new line and add this

Code:
map_.addObj(new _06s(100, 0xFF00FF, 600, 0.5, _04d._F_e(3), _04d._F_e(3)), x_, y_);
then it should look like this


Now to fix error import

Code:
import com.company.assembleegameclient.util._04d;
and
Code:
import _0K_m._06s;
Now how to cuszomize particles
Code:
map_.addObj(new _06s(100, 0xFF00FF, 600, 0.5, _04d._F_e(3), _04d._F_e(3)), x_, y_);
100 = Size of the particles

Code:
map_.addObj(new _06s(100, 0xFF00FF, 600, 0.5, _04d._F_e(3), _04d._F_e(3)), x_, y_);
0xFF00FF= Color

Code:
map_.addObj(new _06s(100, 0xFF00FF, 600, 0.5, _04d._F_e(3), _04d._F_e(3)), x_, y_);
600= Lifetime of the particles in ms

Code:
map_.addObj(new _06s(100, 0xFF00FF, 600, 0.5, _04d._F_e(3), _04d._F_e(3)), x_, y_);
0.5= Y Position of particles

Code:
map_.addObj(new _06s(100, 0xFF00FF, 600, 0.5, _04d._F_e(3), _04d._F_e(3)), x_, y_);
3= X and Y Directional speed


thx
/10char
+1 Great tut. Thanks a ton
This adds the particle effects to the center of the player, but isn't at the players feet...
Quote Originally Posted by Kushala Daora View Post
This adds the particle effects to the center of the player, but isn't at the players feet...
To make the particles erupt from the feet, all you have to do is change the 0.5 to a 0.1 in this line:
Code:
map_.addObj(new _06s(100, 0xFF00FF, 600, 0.5, _04d._F_e(3), _04d._F_e(3)), x_, y_);
Have fun
Quote Originally Posted by bladisbad12 View Post
To make the particles erupt from the feet, all you have to do is change the 0.5 to a 0.1 in this line:
Code:
map_.addObj(new _06s(100, 0xFF00FF, 600, 0.5, _04d._F_e(3), _04d._F_e(3)), x_, y_);
Have fun
Danke. //////////////
Quote Originally Posted by Kushala Daora View Post
Danke. //////////////
Bitte.
//10chars
maybe you could make it so the particles only activate when you consume an item maybe?
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us