| FBA The Creator http://www.fbacreator.com/fbaforum/ |
|
| Animation frames problem http://www.fbacreator.com/fbaforum/viewtopic.php?f=2&t=66 |
Page 1 of 1 |
| Author: | Boiled Sweets [ Fri Jun 27, 2008 10:45 am ] |
| Post subject: | Animation frames problem |
Hi, found an annoying problem (not really a bug I guess) with animation frames. You have to have your animation images like this 0123456789ab etc would be MUCH nicer if the animation frame within the file could be laid out like this... 0123 4567 89ab |
|
| Author: | evilmaio [ Fri Jun 27, 2008 12:30 pm ] |
| Post subject: | Re: Animation frames problem |
how to to cut frames from an image is left to developer fantasy, you can use the drawimage function to cut a frame of an image from everywhere. In my tutorials i used ABCDEFGH just because i prefere so. But you could dispose the frames as you like, because you decide how to cut them. For example if you have your 80x20 image: ABCD you can draw the "D" frame at position 10,10 with this: drawimage(handle, 10,10, 60, 0, 80, 20) But you can also create a 40x40 image: AB CD and cut your "D" frame with: drawimage(handle, 10, 10, 20, 20, 40, 40) |
|
| Author: | Boiled Sweets [ Fri Jun 27, 2008 12:53 pm ] |
| Post subject: | Re: Animation frames problem |
DOH!!!!!!!!!!!!!!! Sorry, that is SOOOOOOOOOO obvious, had a brain fart sorry!!!!!!!!! Game is *REALLY* getting pretty slick now Thanks!!!!! |
|
| Author: | evilmaio [ Fri Jun 27, 2008 1:38 pm ] |
| Post subject: | Re: Animation frames problem |
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|