ChaliShank
|
Hey, Mythril(or anyone else that knows this technique)...how do I get Verge to display only part of a sprite(pcx), as in the way he suggested animating spells in an earlier thread? Does it make extensive use of clipping settings? Or something? Anything? Alright, just lemme know and I sahll be eternally grateful.
Mr. Spare-buttons-supplied-with-the-shirt(ChaliShank)
Posted on 2002-03-17 17:17:45
|
Mythril
|
Since the image code once loaded is just a stripe of pixels in a row, you can put any part of the image you want as long as its a column of images. Imagine a image 3x3 pixels large. The pixels would be numbered:
0 1 2
3 4 5
7 8 9
When you load an image it returns a pointer which tells where in the memory the image is stored. So you could use this pointer + the pixel number to show only part of the image. If you ie want to show only the two bottom lines, you could use:
CopySprite(x,y,3,2,pointer+3)
And the image would look like:
3 4 5
6 7 8
Spoon.
Posted on 2002-03-18 06:01:23
|