Be a Supporter!

AS: help

  • 324 Views
  • 14 Replies
New Topic Respond to this Topic
lexus727
lexus727
  • Member since: Aug. 27, 2003
  • Offline.
Forum Stats
Member
Level 07
Programmer
AS: help 2005-11-27 12:42:02 Reply

hey, 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...

Rammer
Rammer
  • Member since: Jun. 8, 2003
  • Offline.
Forum Stats
Member
Level 33
Programmer
Response to AS: help 2005-11-27 12:43:27 Reply

dont make an AS: thread when you are asking for help...9_9


snyggys

lexus727
lexus727
  • Member since: Aug. 27, 2003
  • Offline.
Forum Stats
Member
Level 07
Programmer
Response to AS: help 2005-11-27 12:45:41 Reply

what am i supposed to do then?


function doYourMom(user:Bbs_account):Kids{
doSex(me.penis,user.mother);
}// yes... i am strange...

Rammer
Rammer
  • Member since: Jun. 8, 2003
  • Offline.
Forum Stats
Member
Level 33
Programmer
Response to AS: help 2005-11-27 12:46:35 Reply

At 11/27/05 12:45 PM, lexus727 wrote: what am i supposed to do then?

what do you think? as: threads are to HELP OTHERS. if you NEED HELP, just use "actionscript help!" as your title, or something like that.


snyggys

lexus727
lexus727
  • Member since: Aug. 27, 2003
  • Offline.
Forum Stats
Member
Level 07
Programmer
Response to AS: help 2005-11-27 12:48:41 Reply

oh, ok, can u help me?


function doYourMom(user:Bbs_account):Kids{
doSex(me.penis,user.mother);
}// yes... i am strange...

Max-Vador
Max-Vador
  • Member since: Nov. 12, 2005
  • Offline.
Forum Stats
Member
Level 13
Animator
Response to AS: help 2005-11-27 13:13:47 Reply

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

Toast
Toast
  • Member since: Apr. 2, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to AS: help 2005-11-27 13:26:05 Reply

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;
}
}
};


BBS Signature
Toast
Toast
  • Member since: Apr. 2, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to AS: help 2005-11-27 13:28:44 Reply

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;
}
}
};


BBS Signature
Toast
Toast
  • Member since: Apr. 2, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to AS: help 2005-11-27 13:36:19 Reply

Oooh, I missunderstood you. Use Denvish's code.


BBS Signature
lexus727
lexus727
  • Member since: Aug. 27, 2003
  • Offline.
Forum Stats
Member
Level 07
Programmer
Response to AS: help 2005-11-27 14:09:07 Reply

nononono, its like, during halloween someone posted a game about a flying witch, and when ur mouse moved left, the witch faced left... got it?


function doYourMom(user:Bbs_account):Kids{
doSex(me.penis,user.mother);
}// yes... i am strange...

lexus727
lexus727
  • Member since: Aug. 27, 2003
  • Offline.
Forum Stats
Member
Level 07
Programmer
Response to AS: help 2005-11-27 14:32:18 Reply

*bump.... anyone, this is realy important


function doYourMom(user:Bbs_account):Kids{
doSex(me.penis,user.mother);
}// yes... i am strange...

Toast
Toast
  • Member since: Apr. 2, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to AS: help 2005-11-27 14:39:41 Reply

Ahhh, so that's what you wanted, lol... It's not 180 degrees, it's _xscale. Add this code to your MC:

onClipEvent (enterFrame) {_root._xmouse > _x ?_xscale = 100:_xscale = -100;}


BBS Signature
lexus727
lexus727
  • Member since: Aug. 27, 2003
  • Offline.
Forum Stats
Member
Level 07
Programmer
Response to AS: help 2005-11-27 14:41:58 Reply

THANK YOU SOOOO MUCH


function doYourMom(user:Bbs_account):Kids{
doSex(me.penis,user.mother);
}// yes... i am strange...

lexus727
lexus727
  • Member since: Aug. 27, 2003
  • Offline.
Forum Stats
Member
Level 07
Programmer
Response to AS: help 2005-11-27 14:45:36 Reply

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...

lexus727
lexus727
  • Member since: Aug. 27, 2003
  • Offline.
Forum Stats
Member
Level 07
Programmer
Response to AS: help 2005-11-27 14:49:49 Reply

its ok, i got it, i just lowerd it to 50 and it was fine


function doYourMom(user:Bbs_account):Kids{
doSex(me.penis,user.mother);
}// yes... i am strange...