Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm a complete beginner to UDK who's been doing two months of reading now. I'm working on a project with UDK and here's the deal.

I've two controllers, one player and one AI, which are both meant to represent birds. I want to be able to get them to switch between flying and walking (or PHYS_Flying and PHYS_Walking).

I want the AI to be flying when I call a function, and the player to be flying when they press a button (i.e. when they jump). I want them to be walking when they are 'on' the ground, though I am not sure how to register this.

EDIT I'm sorry, I was not very precise. Perhaps if I can add more clarity, here is the template for my player controller.

state Flying
{
 function ProcessMove()
 {
   Pawn.SetPhysics(PHYS_FLYING);
 }

 function PlayerMove()
 {
     //moveUp
     //map 's' to move down
 }

 function Tick()
 {
   if(Pawn.Location = Ground)
   {
     GoToState('Walking');
   }
}

state Walking
{
  function Fly()
  {
    GoToState('Flying');
  }
}

Would this work? What would I need to change to make this work?

That's still not very precise, but it's all I can do for now.

I have the blueprint nailed in my head, and I know things like states, events, Tick, SetPhysics() and the Unreal Wiki (namely http://wiki.beyondunreal.com/Legacy:Actor/Movement). But I suppose it's a condition of Asperger's Syndrome that I feel very hesitant and uncomfortable with actually putting them into a program. It's frustrating; I know exactly what I want to say, but I'm too awkward with the syntax to say it properly. An example of how it can be done is what I'm hoping for, I suppose.

I have a really tight deadline (March 21st), so any help you could give would mean a lot!

share|improve this question
What's the actual question? This is sounding like it might need a discussion to get it solved and might be better for a discussion oriented site (a few of which you'll find in the FAQ). Start simple and iterate, build things up slowly and logically. – Byte56 Feb 17 at 0:01
Thanks for your help. I tried asking this on the epicgames forum, but I didn't get any feedback. What could I do to make it more palatable to discuss? – Sam Ofloinn Feb 17 at 4:37
It's just that this site isn't about discussions. See the FAQ under the section: "Where can I ask subjective, discussion, and other questions not fit for this site?" – Byte56 Feb 17 at 4:42
1  
Sorry, I see that now. Thanks for your understanding. I think I know what I need to do. – Sam Ofloinn Feb 17 at 8:03

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.