Gamestudio Links
Zorro Links
Newest Posts
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
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
2 registered members (AndrewAMD, Ayumi), 853 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Tracing problems #140478
07/11/07 15:26
07/11/07 15:26
Joined: Jun 2007
Posts: 8
H
hammeraxe Offline OP
Newbie
hammeraxe  Offline OP
Newbie
H

Joined: Jun 2007
Posts: 8
HI!
I am trying to make my character walk up and down the stairs.


Code:
 
while(1)
{
vec_set(temp.x,my.x);
temp.z=-2000;
trace_mode=IGNORE_ME + IGNORE_MODELS + IGNORE_SPRITES+use_box;
dist_traced=c_trace(me,temp,trace_mode);
if(dist_traced>0)
{
c_move(me,vector(0,0,-10),nullvector,glide);
}
if(dist_traced<0)
{
c_move(me,vector(0,0,10),nullvector,glide);
}
//...and other movement commands



The tracing doesnt seem to work (dist_traced is 0 all the time)...

Could someone please tell me whats wrong?

Re: Tracing problems [Re: hammeraxe] #140479
07/11/07 16:10
07/11/07 16:10
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
Can we see the rest of your movement code ??
It's more convenient that way

Cheers

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB

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