Hi, I'm using a billboard to display a target over an object, thing is
its appearing much to small. using the scale function doesn't seem to
have any effect.
here's the code where the enemy is initalised;
public function Enemy(mesh:ObjectContainer3D, theWord:String,
time:Number,attackTime:Number=-1)
{
super(mesh);
targ=new EnemyTarget(theWord,time,attackTime); //create
the target
from swc file
targPanel = new MovieClipSprite(targ,
{rescale:true,deltaZ:-10000}); //deltaZ set arbitrarily high to make
sure it appears on top.
targPanel.x=350;
targPanel.y=-250;
targ.addEventListener("Leave",flee);
targ.addEventListener("Attack",attack);
this.addChild(targPanel);
targPanel.scale(2000); //doesn't work
this.z=1000;
}
you can see what I'm doing here:
http://graphicfilth.com/bin-release/Hacker.html
and the full source here;
http://graphicfilth.com/bin-release/srcview/
I've set rescale to true as I want the target to be linked with the
depth of the enemy, but I need it to be about twice the size. The play
needs to see the word next to the target (if you look carefully you'll
see that it says "blah"), and the two rings that spin around the
outside.
I've tried rescaling the movieclip before adding it, after adding it
and rescaling the billboard before and after adding it.
Thanks for any advice
Martin