Sign in to follow this  
Strid

Waypoint/Node navigation for "board game"

Recommended Posts

I'm currently prototyping a turn-based flash game based in a board game. It should not be very big or complex, but has some interesting mechanics which i could use some help. The game will be a 4 player game (multiplayer and AI), its has the likes of Ludo ( http://en.wikipedia.org/wiki/Ludo_%28board_game%29 ), but with some changes like collecting items (there's no forward or backward movement, players have to collect some items on the map before getting to the end) Also the board is "dynamic", i mean, some square lines might change their position, some squares might be linked to more than 2 squares (making it possible for the player to choose the path while "advancing") My current approach for being able to make the player's pawn "advance" in a scenario which theres no real forward/backward direction, is retrieving players lastnode and moving to the opposite direction (works well when the node has only 2 "links"). Every time the player enters a node which has more than 2 links, i give him the option to choose which path (excluding the one he came through) by using current node object references to nodes linked to it. Now i need a way to be able to have the player object(which may be AI) get to a specific node finding his own way, so that when programming multiplayer i can only retrieve player's current node from server (not his entire progress history). This would also be essential when programming AI. Any kind of information about node navigation/waypoints will help, may it be focused on board games or AI Thanks!

Share this post


Link to post
Share on other sites
a picture is worth a thousand words :)... i need something like this:

http://megaswf.com/view/69eadb55ac63072b2644d7a17f055f5c.html

Share this post


Link to post
Share on other sites

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