i have 6 different animations. these 6 animations are picked at random 63 times so you may have 11 blue animations, 25 green, 20 red, and 7 purple. can you set the animation speed different for each one
here’s some code but it doesn’t set the speed random all move at the same speed. also speed doesn’t seem to work at all i’ve tried it at 100 and at 10000 for all and there’s no difference in one moving at 100 and one moving at 10000
[blockcode]
local ct1, ct2, ct3
for ct1 = 1, 9,1 do
for ct2 = 1, 7,1 do
ct3 = math.min( 63, ct2 + ((ct1 - 1) * 7 ) )
if gameData[ct3] > 0 then
local colorPeice = gameData[ct3] * 10
local timePeice = math.random( 14000, 15000 )
gamePeice[ct3] = bubbleSheet:grabSprite( “bubble”…gameData[ct3], true, { float = { colorPeice, 10, timePeice, 0 } } )
gamePeice[ct3].x = ((( ct2 - 1 ) * 42 ) + 30 )
gamePeice[ct3].y = ((( ct1 - 1 ) * 43 ) + 100 )
gamePeice[ct3]:play( float )
gpBoard:insert(gamePeice[ct3])
end
end
end
[/blockcode] [import]uid: 7911 topic_id: 15625 reply_id: 315625[/import]