FBA The Creator

The True Multiplatform PC / PocketPC Opensource Development Tool - Read Only Mode - Kept only for historical purposes - Thank you all ;)
It is currently Thu Aug 13, 2020 11:39 am

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Animation frames problem
PostPosted: Fri Jun 27, 2008 10:45 am 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
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

_________________
http://www.boiledsweets.com


Top
   
PostPosted: Fri Jun 27, 2008 12:30 pm 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
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)


Top
   
PostPosted: Fri Jun 27, 2008 12:53 pm 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
DOH!!!!!!!!!!!!!!!

Sorry, that is SOOOOOOOOOO obvious, had a brain fart sorry!!!!!!!!!

Game is *REALLY* getting pretty slick now :)

Thanks!!!!!

_________________
http://www.boiledsweets.com


Top
   
PostPosted: Fri Jun 27, 2008 1:38 pm 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
;)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited