![]() |
Desperately needed script!
Ok, I've been on the phone for about an hour and a half trying to figure out how to make a certain script. What we need is a script that, when the player x (or y) is increased or decreased, the NPC's x (or y) is increased or decreased. If anyone is interested, I'll post out current script to see if anyone can fix it.
|
Forgot to mention a couple of things:
1. I was on the phone with a friend trying to make the script he was helping me) 2. What we have so far is an NPC that takes a step, but keeps going and we can't get it to stop due to timeout. |
erm, if keydown()?
|
easy.
do you want the npc where the player is or...? |
ack
not again n00bs asking for scripts heres what to do a) learn to script b) start with very simple scripts c) move on to more complicated scripts d) only ask for help when ppl recognise you as a good scripter |
*cracks nuckles*. Alright. I believe this forum is to ask questions. NOT TO BE DISSED BY STUPID N00BS!! You need help with certain things, I need help with certain things. If you think I'm such a n00b, why don't YOU try to script the NPC I'm talking about??
|
Quote:
|
Quote:
timeout=.05; if (timeout) { if (y > playery) y-=.3; if (y < playery) y+=.3; if (x > playerx) x-=.3; if (x < playerx) x+=.3; } There it follows the player, just paste that in an npc. |
or you can make it uglier by doing:
x=playerx; y=playery; Just experiment.. |
Or if you want the NPC to move on player position dependance and some other things:
NPC Code: And I probably made some really stupid mistakes in the above script. |
Quote:
im impressed with your scripting skills :D |
Quote:
|
lol
that is so easey!!!!!!
|
Gee, thanks to no one, I got it done myself using keydown. Some help! That's about three times now I think...
|
| All times are GMT +2. The time now is 06:45 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.