![]() |
Projectiles
Hi,
so how would you implement custom projectiles? that have a smooth movement, aren't laggy (well atleast not laggier than the standard projectiles or not much laggier) and have custom speed? |
Basicly you can start with making a serverside class that handles movement (either by using move() or x,y altering using cos and sin) and acts like a projectile.
And to cast it, simply do something like.. PHP Code:
This is just an idea of how you can do it. If others have an other suggestion of how to do it, they can post that. |
hm i tried around with particles and added a modifier to decrease their alpha. but the image of the particle went pure-white instead of becoming transparent?
|
Quote:
But anyway, what is your this.alpha value at, and what is this.red, this.green and this.red (RGB) at? Also, you could try setting this.mode to 2 |
When creating custom projectiles, I strongly recommend using move() rather than altering the x & y; it will be much easier on the server, also.
PHP Code:
|
so how would i add trajectory trails? the automatic particle emission is way too slow for that
|
Quote:
|
a gani script with what?
|
Quote:
|
This might help.
|
| All times are GMT +2. The time now is 11:40 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.