I would like to have an animated movieclip "attached" to a variation of BoxMan.
I have actually modified BoxMan so its more of a "CircleMan" (so the user controls a rolling barrel). While trying to add an animation of a clown on top of the barrel, I was successful, however the clown movieclip position update is slightly off and lags when following the barrel. I want the BoxMan barrel object and clown_mc to be exacty in sync.
At the end of the BoxMan.as I have added
world.clown_mc.x = this.x;
world.clown_mc.x = this.x;
Is there another way to do this? Would changing World componet settings for timeStep or position Iterations help? I have played around with them...with no luck...but I'm a WCK Box2D noob.
I have my .fla document set to a Frame Rate of 60. and changing that doesnt seem to help.
Any suggestions on how to keep a standard movieclip's location locked to a box2D object?
I have actually modified BoxMan so its more of a "CircleMan" (so the user controls a rolling barrel). While trying to add an animation of a clown on top of the barrel, I was successful, however the clown movieclip position update is slightly off and lags when following the barrel. I want the BoxMan barrel object and clown_mc to be exacty in sync.
At the end of the BoxMan.as I have added
world.clown_mc.x = this.x;
world.clown_mc.x = this.x;
Is there another way to do this? Would changing World componet settings for timeStep or position Iterations help? I have played around with them...with no luck...but I'm a WCK Box2D noob.
I have my .fla document set to a Frame Rate of 60. and changing that doesnt seem to help.
Any suggestions on how to keep a standard movieclip's location locked to a box2D object?