Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by jcl. 07/22/26 06:42
ZorroGPT
by TipmyPip. 07/21/26 17:54
New Zorro version 3.11
by jcl. 07/21/26 13:42
Lapsa's very own thread
by Lapsa. 07/18/26 13:40
Purchase A8 full licence version
by ukgamer. 07/17/26 05:52
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (1 invisible), 1,534 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Path makes NPC disappear [Re: ] #455865
11/01/15 21:05
11/01/15 21:05
Joined: Jun 2010
Posts: 590
California
Ruben Offline OP
User
Ruben  Offline OP
User

Joined: Jun 2010
Posts: 590
California
Okay, I managed to get Malice's function to work for my game. I had to change:
Code:
if(vec_dist(my.x,vec_next_node.x) < my.max_x)
to
if(vec_dist(my.x,vec_next_node.x) < 80)


I also used this c_move() code in my monster_code() action:
Code:
c_move(my, vector(8 * time_step, 0, 0), nullvector, GLIDE);



Now it seems to be working, from what I can tell. Thank you Malice and Superku.

Re: Path makes NPC disappear [Re: Ruben] #455871
11/02/15 09:18
11/02/15 09:18

M
Malice
Unregistered
Malice
Unregistered
M



Cool

Page 3 of 3 1 2 3

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