Crazy. Ive searched the declarations for a hint if so but didnt find now im feeling pretty stupid.
I already know the thread you postet but since i didnt found a hint for linearMotion i thought this is to handle in a special way.
my code looks after a few tries like this
override public function update():void
{
super.update();
if (mori.trans == true)
{
if (r == true)
{
move.setMotion(mori.transPoint.x, mori.transPoint.y, 1271, 768, 3, Ease.quadOut);
camboi.addTween(move); r = false }
FP.camera.y = camboi.y - (FP.halfHeight);
FP.camera.x = camboi.x - (FP.halfWidth);
}
}
in the begin() function it looks like this
override public function begin():void
{
super.begin();
move = new LinearMotion(respawn, ONESHOT);
camboi = new Entity();
add(camboi);
}
and + the variables at the top of the world class.
when my hero dies (trans = true) the camera switches into the off (behind some mountains) and after the tween finished it jumpes back to the spawn point (man, cause of this writing i realized that the tween must work…i have to check on this after this sentence). i guess it doesnt applies on the entity but my head is burning (its nearly 12o’clock and my baby doesnt let me sleep long these days ). what do you think?