Sup, Can someone code a fly verb for me and make waves come behind you when you fly.
EXAMPLE if you flying east a wave will come behind of you and will last there for like a sec before i goes away.
ID:269299
![]() May 15 2005, 1:53 pm
|
|
![]() May 15 2005, 2:24 pm
|
|
Just set the /mob/player's density to 0 then flick icon. That's the easiest way.
|
That isn't what he is asking for.
To the author: You need need to learn how to use new, sleep, and del(). |
Please dont post a post double u accidently posted it in code problems ok no problem...
but there's no reason to post it double... O-matic<- |
Sayian Hunter wrote:
SupNot much, but the BYOND forums are usually pretty active. If you're bored, check out en.wikipedia.org - there's lots of work to be done there. :-) Can someone code a fly verb for me and make waves come behind you when you fly.Sure somebody can! BYOND is definitely flexable enough to do taht. EXAMPLE if you flying east a wave will come behind of you and will last there for like a sec before i goes away.In order to do that, you want to take advantage of BYOND's "density" and "overlay" features. Density, as you probably know, determines whether one object can pass through another. Dense objects will be blocked by dense objects. However, by simply setting a player's density to 0, you allow him to "fly". If your flight system is more complex, you might have to write your own system and use the /turf datum's "Enter()" procedure. To create the wave effect you're looking for, start by making a wave icon for each direction that the player can fly. Then you'll want to add that icon as an overlay on the turf behind the player. You can find the turf behind the player by using get_step(). get_step(src,turn(src.dir,180)) will return the turf behind the player. Add the correct icon to that turf's overlays on the FLY_LAYER to make it appear above other things. sleep() for about a second and then delete the overlay. |