Hello
Guest
, please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length.
ZFGC
>
Resources
>
Coding
>
{Question} I want my NPC to follow Link
« previous
next »
Pages: [
1
]
Go Down
Print
Author
Topic: {Question} I want my NPC to follow Link (Read 1083 times)
0 Members and 1 Guest are viewing this topic.
GieVeNT
{Question} I want my NPC to follow Link
«
on:
September 25, 2007, 10:40:46 pm »
Evil's origin begins in TLOZ AO...
Reputation: +0/-0
Offline
Posts: 215
I have an NPC that I want to follow Link's path, and I could do this by recording Link's position every few points if Link is moving and have the NPC go there. This is way more complicated than I would like it to be. Does anyone have suggestions for how this can be done?
Logged
Trask
Re: {Question} I want my NPC to follow Link
«
Reply #1 on:
September 25, 2007, 11:22:56 pm »
Reputation: +0/-0
Offline
Gender:
Posts: 266
Depends on the language for exact syntax, but you can just take Link's X,Y, coordinates and just say like NPC X, Y-2... something like that.
Logged
Intel P4 3.2 GHZ
2.5GB SDRAM DDR400
350GB SATA
ATI RADEON HD 2600PRO 512MB
Creative Sound Blaster Audigy2 Z
Windows XP SP2
Current Projects: None.
- Trask
OriZak
Re: {Question} I want my NPC to follow Link
«
Reply #2 on:
September 26, 2007, 12:12:19 am »
MetalRidley was here
Reputation: +0/-0
Offline
Gender:
Posts: 235
I think mit had a good engine explaining how to do this well, I'll see if i can find it.
Edit: Here it is, I think:
http://www.kousougames.co.uk/data/downloads/counter.php?file=Following
It's GameMaker 6, but if you're using some other language and have GameMaker you could probably look at the technique anyways.
«
Last Edit: September 26, 2007, 12:17:09 am by OriZak
»
Logged
THE MUSIC IS REVERSIBLE, BUT TIME IS NOT. TURN BACK... turn back... turn back...
GieVeNT
Re: {Question} I want my NPC to follow Link
«
Reply #3 on:
September 26, 2007, 05:15:17 pm »
Evil's origin begins in TLOZ AO...
Reputation: +0/-0
Offline
Posts: 215
Oh, yea sorry its GameMaker6. I can't download at the moment but next chance I get I try that example. If anyone else has a script solution, that would be great. Thanks
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
ZFGC
>
Resources
>
Coding
>
{Question} I want my NPC to follow Link
Contact Us
|
Legal
|
Advertise Here
2013 © ZFGC, All Rights Reserved
anything