ID:177919
 
Could someone give me the code for making your character fly. I have the icon states, and all that, I just cant figure out how to make him fly. Someone please give me a flight code, please!
Kamion wrote:
Could someone give me the code for making your character fly. I have the icon states, and all that, I just cant figure out how to make him fly. Someone please give me a flight code, please!

This should be in Newbie Central

We don't know what you want. How should flying work in your game?

In response to Skysaw
Ok, I would like for someone to give me the code that makes it possible for you character to fly. Anyone who has played a DBZ game should know what I want. I'll try to explain it as best I can.

I have the icon I want to fly, and I have the icon of him flying.
What I want is the code that makes the flying icon show, and makes his density equal zero when he's flying, so he can go over everything.

If someone could please give me a code, I would really appreciate it. Thank You
In response to Kamion
mob
var
isfly = 0
mob/verb/Fly()
if(!usr.isfly)
usr << "You are a fly!"
usr.icon_state = "fly"
usr.density = 0
usr.isfly = 1
else
usr << "You become human again!"
usr.icon_state = "human"
usr.density = 1
usr.isfly = 0
In response to Kamion
Kamion wrote:
Ok, I would like for someone to give me the code that makes it possible for you character to fly. Anyone who has played a DBZ game should know what I want. I'll try to explain it as best I can.

I have the icon I want to fly, and I have the icon of him flying.
What I want is the code that makes the flying icon show, and makes his density equal zero when he's flying, so he can go over everything.

If someone could please give me a code, I would really appreciate it. Thank You

Believe it or not, most of the people who answer coding questions here do not play DBZ games. But since you described what you want, I'll help you.
mob
verb
fly()
icon_state = "flying"
density = 0
src << "You're flying!"

land()
icon_state = "walking"
density = 1
src << "You're walking!"

Edit to taste.
In response to Skysaw
a good idea is to check the backlog because Dracon asked this a while back (year or two ;P) and there was alotta replys and a indepth discussion about flying in games
In response to Maz
Maz wrote:
a good idea is to check the backlog because Dracon asked this a while back (year or two ;P) and there was alotta replys and a indepth discussion about flying in games

Yes, I've seen it asked probably 20 times or more since I've been a member of this community. It's usually a lot harder to get the person to describe what they mean, though.
In response to Skysaw
sky wana game of chess?
In response to Nadrew
Nadrew wrote:
> 
> mob
> var
> isfly = 0
> mob/verb/Fly()
> if(!usr.isfly)
> usr << "You are a fly!"
> usr.icon_state = "fly"
> usr.density = 0
> usr.isfly = 1
> else
> usr << "You become human again!"
> usr.icon_state = "human"
> usr.density = 1
> usr.isfly = 0
>


oh thank you! I`ve been looking for a code that'd make the user a fly!

j/k
In response to Maz
Dunno about that. He's really good. :-P