Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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