Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
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
1 registered members (AndrewAMD), 636 guests, and 4 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
C-Trace? #250992
02/11/09 04:52
02/11/09 04:52
Joined: Sep 2008
Posts: 68
T
Tai Offline OP
Junior Member
Tai  Offline OP
Junior Member
T

Joined: Sep 2008
Posts: 68
My attempts at programming the below example have failed miserably using vectors, and c-traces. Either the string always displays (the case is proven true) or it never displays.


EDIT:
Fix'd


Last edited by Tai; 02/11/09 04:53. Reason: Fixed Image
Re: C-Trace? [Re: Tai] #251031
02/11/09 09:57
02/11/09 09:57
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
use c_scan, and in while put line IF(you != NULL) string display ELSE string don't display wink you can also combine it with EVENT_SCAN wink


The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)
Re: C-Trace? [Re: Jaxas] #251098
02/11/09 16:16
02/11/09 16:16
Joined: Sep 2008
Posts: 68
T
Tai Offline OP
Junior Member
Tai  Offline OP
Junior Member
T

Joined: Sep 2008
Posts: 68
If I did that, however, wouldn't that detect every object close by? In that case, it would be unusable.

EDIT: Never mind, I read the manual, and it sorta answered that question.

Last edited by Tai; 02/11/09 16:20.
Re: C-Trace? [Re: Tai] #251116
02/11/09 17:23
02/11/09 17:23
Joined: Sep 2008
Posts: 68
T
Tai Offline OP
Junior Member
Tai  Offline OP
Junior Member
T

Joined: Sep 2008
Posts: 68
Hmm. The string displaying works on this code, but it won't work when I press space.

Click to reveal..
function pole_scanned()
{
while(1)
{
if(event_type == EVENT_SCAN)
{
poleclimbtxt.flags = VISIBLE|OUTLINE;
wait(1);
if(key_space == 1)
{
mountpole = 1;
if(mountpole == 1)
{
player.x = my.x+3;
player.y = my.y;
player.z = my.z;
wait(1);
}
}
}
if(!event_type == EVENT_SCAN)
wait(1);
{
poleclimbtxt.flags = OUTLINE;
cant_move();
wait(1);
}
}
}



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