Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Mixing blitting and MovieClip animations

Guest
Jul 28, 2013 Jul 28, 2013

I have a 2d isometric game in which a user can walk around a house.

The house is made up of multiple 1x1 wall tiles, floor tiles etc. For performance reasons I would like to use blitting to draw all the non-animated parts of the house (the floor, walls, furniture etc).

My game also has animations though. For example, the player movement animation or a ticking clock on the wall. These I have animated in Flash Pro and exported them as .swfs to use in my game.

I cannot simply draw the house using blitting (copyPixels()) and then add the animated movie clips to the display tree ontop of the bitmap. This is because some of the animations (e.g walking animation) will in some cases need to be drawn underneath certain parts of the house. I need to be able to 'insert' the movie clip half way through drawing the house. Is there any easy way to do this?

I can't really blit the animated movie clips either as some of them have very many frames (although a lot of the frames are just copies of eachother) and If I were to cache all the frames my memory use will be too high.

TOPICS
ActionScript
628
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 28, 2013 Jul 28, 2013

different parts of the house can be blitted to different depths.

Translate
Community Expert ,
Jul 28, 2013 Jul 28, 2013

different parts of the house can be blitted to different depths.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 29, 2013 Jul 29, 2013

Do you mean something like this?

this.addChild(blittedBitmap1);

this.addChild(movieClip1);

this.addChild(blittedBitmap2);

this.addChild(movieClip2);

this.addChild(blittedBitmap3);

and so on

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 29, 2013 Jul 29, 2013
LATEST

yes.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines