Sign in to follow this  

Joystick control of an AI character.

This topic is 2849 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am working on a soccer game and it is going good. Right now i have a soccer simulation. I want to have the joystick controller play nicely. I have FSM and Steering for the AI characters. Now, previously I have always used the FSM and steering even if the character was controlled by the joystick. What i mean is that some people do stuff like. If (joystick push forward){ setPosition(getPosition()+Heading Direction* time) } what I do is if (joystick push forward){ steering->SetPlaceTOgo(facingDirection*someDistance) steering->SeekTurnOn() } and steering takes care of the movement. And for the FSM if(Joystick_Button pressed){ CurrentStates->(KickBAllState) } is this the right way to do this or should I implement a new logic for joystick and not use FSM when controlled by the player. THanks

Share this post


Link to post
Share on other sites

This topic is 2849 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this