Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, VoroneTZ, 1 invisible), 1,529 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How does one manage cooroutines properly to run some and not oth #311996
02/22/10 18:09
02/22/10 18:09
Joined: Feb 2006
Posts: 52
C
carlpa Offline OP
Junior Member
carlpa  Offline OP
Junior Member
C

Joined: Feb 2006
Posts: 52
I am using Lite C and cannot use Legacy C. I am trying to manage coroutine function during a "wait()" command. A command like "if(check != 2){return:}" at the beginning of a function does not seem to work. Any ideas please.


Researcher & clinician. A6, A7, & A8
First computer a Commodore Pet
Re: How does one manage cooroutines properly to run some and not oth [Re: carlpa] #312003
02/22/10 18:41
02/22/10 18:41
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
the check variable has to be a global var in your example.

better solution:
use "proc_kill(4);" at the beginning of the cofunction. Read the manual entry about that function.

Re: How does one manage cooroutines properly to run some and not oth [Re: SchokoKeks] #312007
02/22/10 19:23
02/22/10 19:23
Joined: Feb 2006
Posts: 52
C
carlpa Offline OP
Junior Member
carlpa  Offline OP
Junior Member
C

Joined: Feb 2006
Posts: 52
Thank you for your reply. I have tried proc_kill(4). Unfortunately, it stops all the functions and I cannot read a keypress. There is no "my" or "you" as the program is for reaction time testing and not a "game". I suppose I could "pretend" a game and try proc_kill but I am not sure how to do that.


Researcher & clinician. A6, A7, & A8
First computer a Commodore Pet

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