OK.
http://spamtheweb.com/ul/upload/060608/6 4161_SuperNukeBrosMelee.php
I am using _root._x, _root._y, _root._xscale and _root._yscale for zoom and camera position.
The WHITE box, I would like to put HUD and stuff in, but I cannot get it to plaster to the screen.
I have tried A LOT of things, each with no success. I would just like it so that the white box stays
in one spot on screen before I put things in it...
code in frame:
scalezors = 80;
topcb = 50;
leftcb = 0;
rightcb = 550;
bottomcb = 250;
topdb = -400;
leftdb = -500;
rightdb = 1000;
bottomdb = 800;
onEnterFrame = function () {
if (_root.pl1._x>leftcb && _root.pl1._x<rightcb) {
_x = Math.round(-(1.25*scalezors/100)*_root.p l1._x+((275+(275+550)/2)/2));
}
if (Math.round((0.3*scalezors/100)*_root.pl 1._y+(100))>topcb && Math.round((0.3*scalezors/100)*_root.pl1 ._y+(100))<bottomcb) {
_y = Math.round(-(0.3*scalezors/100)*_root.pl 1._y+(100));
}
_xscale = scalezors;
_yscale = scalezors;
_root.hud._x = -_x+275;
_root.hud._y = -_y+200;
};
I am trying to get _root.hud to stay in one spot on the screen. Why is it so hard?