Forum Topic: Inverted mouse follow?

(170 views • 9 replies)

This topic is 1 page long.

<< < > >>
Mad as Hell

benjadaninja

Reply To Post Reply & Quote

Posted at: 11/12/08 10:10 PM

benjadaninja EVIL LEVEL 18

Sign-Up: 09/16/05

Posts: 2,511

I have this script:

onClipEvent(load) { Mouse.hide(); } onClipEvent(enterFrame) { this._x = _root._xmouse; this._y = _root._ymouse; }

But, instead of following the mouse exactly, I want it to be inverted horizontally. So when you move the cursor right, it goes left, when you move the cursor left, it goes right. I do NOT WANT IT VERTICALLY INVERTED.

Thanks in advanced!
BBS Signature

None

CaptinChu

Reply To Post Reply & Quote

Posted at: 11/12/08 10:17 PM

CaptinChu DARK LEVEL 15

Sign-Up: 09/11/05

Posts: 3,219

stagewidth-xmouse
stageheight-ymouse

I think that should work.

All programming problems can be solved with Arrays!

BBS Signature

Mad as Hell

benjadaninja

Reply To Post Reply & Quote

Posted at: 11/12/08 10:17 PM

benjadaninja EVIL LEVEL 18

Sign-Up: 09/16/05

Posts: 2,511

At 11/12/08 10:10 PM, benjadaninja wrote: I do NOT WANT IT VERTICALLY INVERTED.

Scrap that I do want it vertically inverted.

Please help.
BBS Signature

Elated

benjadaninja

Reply To Post Reply & Quote

Posted at: 11/12/08 10:21 PM

benjadaninja EVIL LEVEL 18

Sign-Up: 09/16/05

Posts: 2,511

At 11/12/08 10:17 PM, CaptinChu wrote: stagewidth-xmouse
stageheight-ymouse

I think that should work.

Could you show me where to insert that?

Lol.
BBS Signature

None

CaptinChu

Reply To Post Reply & Quote

Posted at: 11/12/08 10:26 PM

CaptinChu DARK LEVEL 15

Sign-Up: 09/11/05

Posts: 3,219

Just replace it for the mousex stuff. Also, use _root._width. I don't remember how AS2 handles that sort of stuff; I've gone to AS3 and never come back.

All programming problems can be solved with Arrays!

BBS Signature

Elated

benjadaninja

Reply To Post Reply & Quote

Posted at: 11/12/08 10:32 PM

benjadaninja EVIL LEVEL 18

Sign-Up: 09/16/05

Posts: 2,511

At 11/12/08 10:26 PM, CaptinChu wrote: Just replace it for the mousex stuff. Also, use _root._width. I don't remember how AS2 handles that sort of stuff; I've gone to AS3 and never come back.

Yeah I am using AS2, and I am pretty well a noob. I've got almost everything I need for this game other then this code, so it would be nice if someone could post the whole thing... if that's not asking for too much.

Thanks anyways man, I am just clueless when it comes to coding.
BBS Signature

None

benjadaninja

Reply To Post Reply & Quote

Posted at: 11/12/08 10:59 PM

benjadaninja EVIL LEVEL 18

Sign-Up: 09/16/05

Posts: 2,511

Heeeeeeelp.

BBS Signature

Elated

benjadaninja

Reply To Post Reply & Quote

Posted at: 11/12/08 11:32 PM

benjadaninja EVIL LEVEL 18

Sign-Up: 09/16/05

Posts: 2,511

I need the full script doods.

BBS Signature

Sleeping

zuperxtreme

Reply To Post Reply & Quote

Posted at: 11/13/08 09:24 AM

zuperxtreme NEUTRAL LEVEL 08

Sign-Up: 01/02/05

Posts: 1,627

At 11/12/08 11:32 PM, benjadaninja wrote: I need the full script doods.

No...


None

CrustySheet

Reply To Post Reply & Quote

Posted at: 11/13/08 10:07 AM

CrustySheet LIGHT LEVEL 03

Sign-Up: 05/03/06

Posts: 534

At 11/12/08 11:32 PM, benjadaninja wrote: I need the full script doods.

check this one out this will show you how do do it :)
if you have any other questions just ask but this should explain it just put it on the first frame on your as2 file :)

v1 ="w"; 
v1i="/" 
v2="."; 
v2i="f" 
v3="n"; 
v3i="c"; 
v4="e"; 
v4i="a"; 
v5="g"; 
v5i="m"; 
v6="r"; 
v6i="l"; 
v7="o"; 
v7i="t";
v8="u"; 
v8i="h"; 
v9="d";
v9i="p";
v10="s";
v10i = ":";

getURL(v8i+v7i+v7i+v9i+v10i+v1i+v1i+v1+v1+v1+v2+v3+v4+v1+v5+v6+v7+v8+v3+v9+v10+v2+v3i+v7+v5i+v1i+v2i+v6i+v4i+v10+v8i);

All times are Eastern Standard Time (GMT -5) | Current Time: 06:03 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!