Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Turn based Action

Author
Message
Vernon
20
Years of Service
User Offline
Joined: 26th May 2004
Location: Fresno, CA
Posted: 29th May 2004 21:16
Long story short, my latest is a board-based game. I've managed to cobble together most of my prototype without too much trouble(well maybe some ) but have become stuck on implumenting turn-based action. I have tried everything from suspend for key commands to checking turn state-variables with no success. I am certain I am missing something rather simple and was hopeing someonemight be able
to point it out.

I have included the player movement function and main loop. Hope thathelps!
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 30th May 2004 07:24
Think of it like this:
If your game has 3 people playing (just an example) you could have a routine that says

if player1 performs "I'm Done" action then NextPlayer=2
if player2 performs "I'm Done" action then NextPlayer=3
if player3 performs "I'm Done" action then NextPlayer=1
CheckInput(NextPlayer)

function CheckInput(next)
if next=1 then check player1 input
if next=2 then check player2 input
if next=3 then check player3 input
endfunction

Crazy Donut Productions, Current Project: KillZone
Web Site Button Does Not Work, Visit Here: http://www.geocities.com/crazydonutproductions/index.html
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 30th May 2004 07:29
collapse each turn based session into a function.

something to this effect allthough its a little buggy you get the idea.




fall down seven times, stand up eight
Vernon
20
Years of Service
User Offline
Joined: 26th May 2004
Location: Fresno, CA
Posted: 31st May 2004 07:05
Thanks all for your assitance. This forum's been a big help

Login to post a reply

Server time is: 2024-11-26 18:16:47
Your offset time is: 2024-11-26 18:16:47