Thread: Creatures
View Single Post
  #1  
Old 07-23-2001, 08:34 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
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
Reply With Quote