Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Animated sprite

Animated sprite

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

Animated sprite

Postby 3m3r1c » Tue Oct 06, 2009 7:54 pm

Hello everybody :)

Currently, I have problem to create an animated sprite.
I don't want use an AnimationDrawable because I don't think it's a good idea for my problem.
In fact I want take all sprites in a same .png like this example:
Image
first, do you think I am right ? because there are also animation sprites if the guy is dying, is running and ect...
Thus Is it better use 40 .png(s) for one characters or a big one .png for each characters?

If i am right, the only possibility that I have find it's used an Bitmap with source rect and rect destination like this :

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. canvas.drawBitmap(myAnimation, sourceRectangle, destinationRectangle, null);
Parsed in 0.011 seconds, using GeSHi 1.0.8.4


But what the difference with a drawable object because at this time I use drawable (speed, optimisation). Is it possible to create an drawable with Bitmap if we know the source rect ?

thank you for your help.
3m3r1c
Freshman
Freshman
 
Posts: 9
Joined: Fri Sep 18, 2009 1:39 pm

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 3 guests