Hi,
I'm a newbie and am trying to code my first game in Gideros. So my question is about adding more than one bitmap to a sprite and what is better in terms of performance, to do. Add multiple bitmaps to a sprite and make one or more invisible as required or have only one or two bitmaps and change them on the fly? Thanks.
Comments
ps: https://wiki.giderosmobile.com/index.php/Profiling
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
https://wiki.giderosmobile.com/index.php/MovieClip
or
https://wiki.giderosmobile.com/index.php/Spine
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
I'm not trying to make an animation. I want to replace the bitmap of a sprite. For example, my object is a card with one bitmap for the basic shape and another bitmap for a symbol which lies on top of the shape. Now , I want to change the shape or the symbol of the card at will.
So if there are 10 types of cards, my question is what's the better way to change a card. Have twenty bitmaps on one sprite and making some bitmaps invisible to get the look I want OR have only two bitmaps per card and replace those bitmaps every time to get the look I want.
Likes: oleg
http://docs.giderosmobile.com/reference/gideros/Pixel/setTexture#Pixel:setTexture
Fragmenter - animated loop machine and IKONOMIKON - the memory game
So I guess now I have to profile Pixel too. Thanks for the idea.
Likes: MoKaLux
Likes: MoKaLux, oleg, antix
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Thanks to all of you for taking an interest in my issue.