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
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: How To Attach Walking Entity to Path? [Re: Superku] #347535
11/16/10 00:23
11/16/10 00:23
Joined: Oct 2010
Posts: 346
USA
RealSerious3D Offline OP
Senior Member
RealSerious3D  Offline OP
Senior Member

Joined: Oct 2010
Posts: 346
USA
That worked wonderfully! Thank you so very, very much! I owe you. If you need a model or textures or something, don't hesitate to ask!

Re: How To Attach Walking Entity to Path? [Re: RealSerious3D] #406334
08/17/12 14:07
08/17/12 14:07
Joined: Aug 2007
Posts: 49
Rio Claro, São Paulo, Brazil
C
Cristiano_Iost Offline
Newbie
Cristiano_Iost  Offline
Newbie
C

Joined: Aug 2007
Posts: 49
Rio Claro, São Paulo, Brazil
And using physics ? How do I to implement this ?

Re: How To Attach Walking Entity to Path? [Re: Cristiano_Iost] #406346
08/17/12 17:53
08/17/12 17:53
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
What's the difference? Should work the same, just don't use c_move/ c_trace.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: How To Attach Walking Entity to Path? [Re: Superku] #406352
08/17/12 20:07
08/17/12 20:07
Joined: Aug 2007
Posts: 49
Rio Claro, São Paulo, Brazil
C
Cristiano_Iost Offline
Newbie
Cristiano_Iost  Offline
Newbie
C

Joined: Aug 2007
Posts: 49
Rio Claro, São Paulo, Brazil
Yes, I do this but the physics entity don´t follow the path. I just change the c_move for addvelcentral and don´t works.

Re: How To Attach Walking Entity to Path? [Re: Cristiano_Iost] #412122
11/22/12 23:52
11/22/12 23:52
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline

Expert
Realspawn  Offline

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
perhaps a dummie question. But how to make it follow a predefined path without using WED. so how to make it
follow auto for example a path called : path_000

(if this model is created during game)

and superku also thx from me laugh


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: How To Attach Walking Entity to Path? [Re: Realspawn] #412123
11/23/12 01:18
11/23/12 01:18
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
-> Manual wink (path_set)


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: How To Attach Walking Entity to Path? [Re: Superku] #412137
11/23/12 12:05
11/23/12 12:05
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline

Expert
Realspawn  Offline

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
found that allready but not quite sure how to use it in this coding. I Tried but the model moves but is not following the path correctly


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: How To Attach Walking Entity to Path? [Re: Realspawn] #412208
11/23/12 23:25
11/23/12 23:25
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Well there is no science involved, just call it at the beginning of the function.
To your problem:
"not following correctly" can mean many things, so I have to ask/ guess:
- Does it work with a path attached in WED?
- Does the comparison in if(vec_dist(my.skill2,my.x) < 16) ever evaluate positive?
- Try
my.pan = my.skill8;
instead of
my.pan += clamp(ang(my.skill8-my.pan)*0.25,-5,5)*time_step;


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: How To Attach Walking Entity to Path? [Re: Superku] #412214
11/24/12 00:52
11/24/12 00:52
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline

Expert
Realspawn  Offline

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
that did it laugh thx super help onvce again laugh

and trust me for non coders like me a lot is science but thankfull no fiction laugh


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: How To Attach Walking Entity to Path? [Re: Realspawn] #415330
01/17/13 14:37
01/17/13 14:37
Joined: Dec 2010
Posts: 224
NRW, Germany
NeoJones Offline
Member
NeoJones  Offline
Member

Joined: Dec 2010
Posts: 224
NRW, Germany
I have a question, too. I have the problem, that my entity having always not the same speed on the path. For example, i have a short edge, it runs fast. If i have a long edge on the path, it runs slow... here is my code:

Code:
//create a path
path_create(stones[new_stone].entname, 3, 2);
path_setnode(stones[new_stone].entname, 1, start_pos.x, NULL);
path_setnode(stones[new_stone].entname, 2, checkpoint_pos1.x, NULL);
path_setnode(stones[new_stone].entname, 3, end_pos.x, stones[new_stone].entname);

//follow path
var distance = 0;
while(1)
{
   path_spline(stones[new_stone].entname, stones[new_stone].entname.x, distance += 5*time_step);
   wait(1);
}



Errors are the engine of progress.

Version: A8 Commercial
OS: Win 7 64bit
Models: Cinema 4D
Page 2 of 3 1 2 3

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