That thing that Mythril suggested...
Displaying 1-3 of 3 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
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

Mythril

The correct "images" should be:
0 1 2
3 4 5
6 7 8
and:
3 4 5
6 7 8
Hopefully you know enough math to know how to calculate stuff for larger images.



Spoon.

Posted on 2002-03-18 06:03:23


Displaying 1-3 of 3 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.