Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 Viewshey, i have a code for a thing that follows my mouse alon the _x axis, but i want it, when i move to the left of it, it rotates 180 degrees, so its aloways looking at my mouse, my code is
bounce = .05;
_root.onEnterFrame = function()
{
with (follower) {
_x += (_root._xmouse-_x)*bounce;
}
};
function doYourMom(user:Bbs_account):Kids{
doSex(me.penis,user.mother);
}// yes... i am strange...
Ehh, probably not really what you wanted, but meh...
bounce = .05;
_root.onEnterFrame = function()
{
with (follower) {
_x += (_root._xmouse-_x)*bounce;
bleh = _xmouse-this._x;
_rotation += bleh/50;
if(_root._xmouse > this._x && _rotation < 0){
_rotation = 0;
}
if(_root._xmouse < this._x && _rotation > 0){
_rotation = 0;
}
}
};
At 11/27/05 01:13 PM, MaxV wrote: sorry, can't help you there, but i can help you with your sig query
flash does have a z axis
it's the arrange height. this is set as depth, or arrangement
for instance, something set at 1 is furthest away, while 999 is closest to you
Not at all! Flash does not have a _z axis. Depth is depth, not _z axis. You can maybe call it fake 3D, but definatly not _z.
------------
Here ya go:
bounce = .05;
_root.onEnterFrame = function()
{
with (follower) {
_x += (_root._xmouse-_x)*bounce;
bleh = _xmouse-this._x;
_rotation = bleh/10;
if(_root._xmouse > this._x && _rotation < 0){
_rotation = 0;
}
if(_root._xmouse < this._x && _rotation > 0){
_rotation = 0;
}
}
};
hmm.... when i put it on my mc, it totaly stretched it so i put
onClipEvent (enterFrame) {
_root._xmouse>_x ? _xscale=_xscale : _xscale=-_xscale;
}
but when i put my mouse to the left, it jus flashes back n forth.... any ideas
function doYourMom(user:Bbs_account):Kids{
doSex(me.penis,user.mother);
}// yes... i am strange...