mobile - Animating an object with physics engine corona sdk without sprite animation -
i have developed game using physics engine fall object. working fine. need animate object little while falls. possible make object animated without using sprite animation ?
or else there way can combine sprite animation while object falls using physics engine ?
u can rotate or move object while falling. sometimes, may result in incorrect responses.
otherwise, create sprite animation, , make reference point in reference falling object timer
or enterframe
check.
eg:
-- let 'ball' physics body -- let mysprite may sprite spritesheet function placesprite() mysprite.x=ball.x; mysprite.y=ball.y; end timer.performwithdelay(1,placesprite,-1) -- can use runtime listener on enterframe
Comments
Post a Comment