
07-23-2001, 08:34 AM
|
|
Lord Helmut
|
 |
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
|
|
Creatures
|
I am making a creature that follows the player around and I was experimenting with setimgpart and stuff. I know Merlin wont help if u dont have some of it done so here is what i did.
// NPC made by Lord Helmut (LAT)
if(playerenters){
setimgpart bomy.png,98,52,40,43;
}
if (playerdir==left) {
setimgpart bomy.png,48,99,48,43;
}
if (playerdir==right{
setimgpart bomy.png,140,98,44,44;
}
I was playing around and seeing how this stuff worked and i got the right thing for setimgpart and i was happy. But I want it so it watches a player and when they walk left it turns left and stays behind them. So like if a player x = 30 then this x is like 2 less. How would I make it work so it constantly did somthing? Because I want this to follow the player and each time there x increases the creatures increases by the same amount.
I used a bomy as a example but this is not the real one. It was just for experimenting. |
__________________
Warrior of Light
WWW.BABYLONSERVER.COM
|
|
|
|