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
1 registered members (TipmyPip), 18,633 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
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 | 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