USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 11/12/08 10:10 PM
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!
Posted at: 11/12/08 10:17 PM
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!
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.
Posted at: 11/12/08 10:21 PM
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.
Posted at: 11/12/08 10:26 PM
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.
Posted at: 11/12/08 10:32 PM
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.
Posted at: 11/12/08 10:59 PM
Heeeeeeelp.
Posted at: 11/12/08 11:32 PM
I need the full script doods.
Posted at: 11/13/08 09:24 AM
Sign-Up: 01/02/05
Posts: 1,627
At 11/12/08 11:32 PM, benjadaninja wrote: I need the full script doods.
No...
Posted at: 11/13/08 10:07 AM
Sign-Up: 05/03/06
Posts: 534
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