
01-21-2002, 12:18 AM
|
|
Registered User
|
 |
Join Date: Aug 2001
Posts: 710
|
|
Re: Re: Custom NPC
Quote:
Originally posted by Sennema
I'll help you out as much as I can. First, you'll need to either know the dimensions of the image (like the width/height of each sprite, and the starting x/y of each sprite so that they're the same size). Then, you'd need to set variables like:
this.hearts=heartcount;
this.speed=speed; (normal speed is about 0.2 or 0.3, can't remember which one).
Then, you'd need to do an if (created){} stuff, which sets the variables, and the image and junk. You'd use showimg, for showing it. Then, you'd need to use a changeimgvis index,3; (3 is the same level as the player on the board). Then you'd need changeimgpart index,x,y,width,height; (x and y are the starting x/y of the current sprite, and width and height are how many pixels to display following the starting x/y).
That's all jumbled together, I know, so if you have problems understanding it (I have a lot of trouble understanding some of the things I write sometimes), let me know, and I'll spend a little more time on this sort of thing. Or just ask someone else. Either one works.
|
Thank you, the main part I need to focus on is the sprites changing part. Like how to make the sprites change or something. The script I have seen before were like dog.gif*64 bla bla and I need to figure that part out most =D |
|
|
|