Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
turned based #138294
06/26/07 18:57
06/26/07 18:57
Joined: Feb 2003
Posts: 264
Michigan,USA
alienheretic Offline OP
Member
alienheretic  Offline OP
Member

Joined: Feb 2003
Posts: 264
Michigan,USA
i saw a few post for turned based rpgs but cant seem to find a working download or example anywhere does any one have an idea how to handle turns bassed on iniative of players and enemies or know where i can download the few examples that were posted some time ago?

Re: turned based [Re: alienheretic] #138295
06/26/07 19:13
06/26/07 19:13
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
This is how Wade_Adams and Grimbar helped me with my Borderline Conflict
demo level.

entity* player1;
entity* player2;
entity* current_player;
var in_the_air = 1;


Function main()
{

current_player = player1;//just to have an auto start player
}

function switch()
{

in_the_air = 1;
if (current_player==player1) // end turn so switch to other player
{

current_player = player2;//change to 1 to have only one player
}
else
{
current_player = player1;
}

}
on_tab switch;// or set it so that the switch is triggered by an
explosion, shot or time period.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1