Sign in to follow this  

need help with 'computer moving' basics..

This topic is 4107 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

Hei! as this is my very first computer moving game i need some basic help with ai.. i installed few screenshots to my homepage at "EuroJari HomePage" to ease the understanding of the game idea, basicly its counters with combat and movement factors moving on an map capturing cities and locations with oppositing force doing the same.. i dont expect my project to be easy one to me, but i think i can make it, shortly, about this is how i was thinking to put things go right.. game map is 15x15 hexes, game turns 10.. if i do multiple arrays [15][15] holding the information where game pieces should be on and then just some kind of an close moving prosessing for counters distances 1-3 from 'right place' my game should be running just fine,am i right??.. like i said this is my very first 'computer moving' game and if my idea seems stupid or too simple from you or if you just make it better then i would love to here from you, before i do hundreds of lines of code.. Yours JariTapio / Helsinki Finnland HomePage:www.EuroJari.net EMail:JariTapio@EuroJari.net

Share this post


Link to post
Share on other sites
--Your qustion is not clear.
--What are you asking?

Basicly im asking is my ai plan formatite to my game, i dont want to write those hundreds of lines of code and then someone just gives better idea for ai..

so, if i make multiple arrays [15][15] with locations (cities) holding 1-4 hexes between, and then some kind of a hex2hex movement&combat for distances 1-4, then will you people see my game ai routines reaching the level good ??

Yours : JariTapio / Helsinki Finnland
Screenshots : EuroJari HomePage

Share this post


Link to post
Share on other sites
Sounds like you could use a simple state machine for your AI.

This article in the Resources section of the site covers it pretty well.

Just ignore the part about grouping and mob mentality. Those are more advanced.

It seems like you just need two states to get started: Attack and Retreat.

Share this post


Link to post
Share on other sites

This topic is 4107 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