It looks like you're new here. If you want to get involved, click one of these buttons!
-- Create splat animation local frame1 = Bitmap.new(self.scene.atlas[5]:getTextureRegion("bullet splat 0001.png")) frame1:setAnchorPoint(.5,.5) local frame2 = Bitmap.new(self.scene.atlas[5]:getTextureRegion("bullet splat 0002.png")) frame2:setAnchorPoint(.5,.5) local frame3 = Bitmap.new(self.scene.atlas[5]:getTextureRegion("bullet splat 0003.png")) frame3:setAnchorPoint(.5,.5) local frame4 = Bitmap.new(self.scene.atlas[5]:getTextureRegion("bullet splat 0004.png")) frame4:setAnchorPoint(.5,.5) local frame5 = Bitmap.new(self.scene.atlas[5]:getTextureRegion("bullet splat 0005.png")) frame5:setAnchorPoint(.5,.5) local frame6 = Bitmap.new(self.scene.atlas[5]:getTextureRegion("bullet splat 0006.png")) frame6:setAnchorPoint(.5,.5) local frame7 = Bitmap.new(self.scene.atlas[5]:getTextureRegion("bullet splat 0007.png")) frame7:setAnchorPoint(.5,.5) local mc = MovieClip.new{ {1, 3, frame1}, {3, 6, frame2}, {6, 9, frame3}, {9, 12, frame4}, {12, 15, frame5}, {15, 100, frame7}, } |
Comments
Likes: chipster123
I've been looking for a way to cut down my movie clip code (just like in this post), but no matter what I try, I can't get this working.
I have 14 images, and I set up an mc going from 1 - 14 then back to 1.
this is the long code ...
Thank you in advance!
Thank you for pointing that out!!
I made some errors in the code and I think I got it working now