It looks like you're new here. If you want to get involved, click one of these buttons!
local mc = MovieClip.new({ --running {1, 5, t[1]}, {6, 10, t[2]}, {11, 15, t[3]}, {16, 20, t[4]}, {21, 25, t[5]}, {26, 30, t[6]}, {31, 35, t[7]}, {36, 40, t[8]}, --hit {101, 105, t[20]}, {106, 125, t[21]}, {126, 130, t[20]}, --punch {201, 205, t[9]}, {206, 210, t[12]}, {211, 215, t[13]}, {216, 230, t[14]}, --jump {401, 410, t[15]}, {411, 420, t[16]}, {421, 440, t[17]}, {441, 450, t[18]}, {451, 460, t[19]}, --lost {601, 610, t[20]}, {611, 620, t[21]}, {621, 630, t[22]}, })
self.mc:setGotoAction(40, 1) self.mc:setGotoAction(130, 1) self.mc:setGotoAction(230, 1) self.mc:setGotoAction(450, 1) self.mc:setGotoAction(720, 1)
mc:play()
mc:gotoAndPlay(201)
Likes: talis
Comments
basically it tells movie clip to go to specific frame and start playing from it
For example if I have multiple animations
stop animation on frame : 100
mc:setStopAction(100)
http://docs.giderosmobile.com/reference/gideros/MovieClip#MovieClip
Likes: talis