Gamestudio Links
Zorro Links
Newest Posts
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
5 registered members (AndrewAMD, alibaba, Konsti, 2 invisible), 1,418 guests, and 2 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
How to get entity to move up and down on path? #131858
05/25/07 09:13
05/25/07 09:13
Joined: Nov 2005
Posts: 14
calif
G
growthweb Offline OP
Newbie
growthweb  Offline OP
Newbie
G

Joined: Nov 2005
Posts: 14
calif
Hi, Sorry for this dumb question but it has me stumped. I know how to create a path and using the actors.wdl patrol path function my entity walks the path. However, when I raise and lower the hight of my path in different areas my entity does not raise or lower with the path. I know this is so simple but I just dont know how to get movement on paths to follow up and down. Like my entity to actual stick to the path. Thanks for any help.

Last edited by growthweb; 05/25/07 09:23.
Re: How to get entity to move up and down on path? [Re: growthweb] #131859
05/25/07 18:23
05/25/07 18:23
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
Your player is the human or something? If yes... gravity keeps him on the ground so he will be always on the ground.
If this is a airplane then use vec_to_angle(my.pan,node.pos) and the ship will look at the node and then move him with c_move;


Never say never.
Re: How to get entity to move up and down on path? [Re: tompo] #131860
05/26/07 03:21
05/26/07 03:21
Joined: Nov 2005
Posts: 14
calif
G
growthweb Offline OP
Newbie
growthweb  Offline OP
Newbie
G

Joined: Nov 2005
Posts: 14
calif
Thanks for the help. Is there a premade script that would have the vect to angle and the c_move that you mention? Since I am very new to scripting a premade script would really help me get started. One final question, if I REMOVED the gravity from my character would I then be able to have him go up and down the paths? Thanks again ....

Re: How to get entity to move up and down on path? [Re: growthweb] #131861
05/26/07 15:49
05/26/07 15:49
Joined: May 2007
Posts: 43
Austin, TX
Afox Offline
Newbie
Afox  Offline
Newbie

Joined: May 2007
Posts: 43
Austin, TX
I have the same question.
So will it look something like this?

//////////////////////////////////////////////////////////////////////////
action duck_fly
{
while(1)
{
wait(1);
c_move(me,vector(5 * time, 0, 0),nullvector,IGNORE_YOU|GLIDE);
if(key_l)
{
vec_to_angle(my.pan,node.pos);
}
}
}

//////////////////////////////////////////////////////////////////

If this is right? where would one insert this code into the aiDumBiped.wdl template so that you would have an animated model following a path in the air that can be shot. Like birds for instance


A7.86 Pro/Artist
Alex's 3D
Re: How to get entity to move up and down on path? [Re: Afox] #131862
05/26/07 20:09
05/26/07 20:09
Joined: Nov 2005
Posts: 14
calif
G
growthweb Offline OP
Newbie
growthweb  Offline OP
Newbie
G

Joined: Nov 2005
Posts: 14
calif
Thanks so far for your help. I tried pasting this in several different spots in aiDumBided.wdl but keep getting errors. I feel I almost have the solution!

action duck_fly
{
while(1)
{
wait(1);
c_move(me,vector(5 * time, 0, 0),nullvector,IGNORE_YOU|GLIDE);
if(key_l)
{
vec_to_angle(my.pan,node.pos);
}
}
}

Re: How to get entity to move up and down on path? [Re: growthweb] #131863
05/27/07 13:36
05/27/07 13:36
Joined: May 2007
Posts: 43
Austin, TX
Afox Offline
Newbie
Afox  Offline
Newbie

Joined: May 2007
Posts: 43
Austin, TX
Well Im not sure that code is entirely accurate. that's why I asked if that's what it should look like. Did you try eliminating the gravity? I did. It gets the actor off the ground and on to the path thats placed in the air but it still won't follow nodes up or down. It's close enough for ducks flying level but probably won't help you any.

try this site for more clues path tutorials

And let me know if you figure it out


A7.86 Pro/Artist
Alex's 3D
Re: How to get entity to move up and down on path? [Re: Afox] #131864
05/27/07 17:43
05/27/07 17:43
Joined: Nov 2005
Posts: 14
calif
G
growthweb Offline OP
Newbie
growthweb  Offline OP
Newbie
G

Joined: Nov 2005
Posts: 14
calif
Well I tried all that you have tried and got to where you are at. This is such a simple thing. Many people are programming moving planes, birds etc on paths in to gamestudio. Wonder why Iam having such a heck of a tme finding info on this. Will keep working at it. .... Thanks ...

Re: How to get entity to move up and down on path? [Re: growthweb] #131865
05/28/07 10:17
05/28/07 10:17
Joined: Dec 2006
Posts: 11
C
codewriter Offline
Newbie
codewriter  Offline
Newbie
C

Joined: Dec 2006
Posts: 11
How did you turn gravity off

Re: How to get entity to move up and down on path? [Re: codewriter] #131866
05/28/07 15:06
05/28/07 15:06
Joined: May 2007
Posts: 43
Austin, TX
Afox Offline
Newbie
Afox  Offline
Newbie

Joined: May 2007
Posts: 43
Austin, TX
I went into the bipedpy01 template and hcnaged var bipedphy01_gravity to 0


A7.86 Pro/Artist
Alex's 3D
Re: How to get entity to move up and down on path? [Re: growthweb] #131867
06/06/07 01:17
06/06/07 01:17
Joined: Jan 2007
Posts: 183
K
Kinji_2007 Offline
Member
Kinji_2007  Offline
Member
K

Joined: Jan 2007
Posts: 183
Create your own path code. Follow the tutorials I have on NITROs site. If you run into problems pm me. If I remember right, I did one of the last path finding tutorials on bats or planes.. cant remember. Either way, try them out.

If you would like a certain answer to your problem, please paste your script.

Last edited by Kinji_2007; 06/06/07 01:29.

http://www.geocities.com/carapacedweller/kinjis/Tutorial_Index.html A5 and A6 tutorials <> E3S series "Show me once and I got it, tell me once and I'll think twice."

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