Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

3D Text effect Mouse Tracking script

Community Beginner ,
Dec 14, 2011 Dec 14, 2011
Can you pliz help me with a script to make this effect? the 3D text effect that follows with the mouse.

http://www.yodabaz.com/

i got a script that tracks the mouse till the end of the screen but i needed something like this that only tracks it slightly. i'm only a beginner in flash. Thanks a lot. I appreciate it.

TOPICS
ActionScript
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Dec 16, 2011 Dec 16, 2011

Put all your texts into one movie clip and then rotate that based on mouse position. mouseX controls rotation on Y and mouseY controls rotation on X.

Here's an example - start a new movie - add an image on stage, turn it into a movieClip (make sure the reg point is on center, not upper left) and give it an instance name of bg.

Add this code to frame 1:

addEventListener(Event.ENTER_FRAME, update);

function update(e:Event):void

{

    bg.rotationY = (275 - mouseX) / 30;

    bg.rotationX = (200 - mouseY) /

...
Translate
Advocate ,
Dec 15, 2011 Dec 15, 2011

if you already have an exmaple running which tracks the mouse position you will be accessing mouseX and mouseY simply divide these values by a number to reduce the amount of tracking.

e.g.

rotationX = mouseX;

becomes

rotationX = mouseX / 2;

can't really be more helpful without code

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 15, 2011 Dec 15, 2011

Tnkz Spoboyle...
Will it be possible to post up a tutorial that specifics my kinda requirement... like i said, am a beginner & a tutorial wud help me immensly..
Thankz again.!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 15, 2011 Dec 15, 2011

my query is:
I have Some text's on the stage.
& I want them to folow the cursor but not till the entire ends of the screen but just like a lilttle tilting to giv it a 3D effect.

you can check out the link here to get what i mean.http://www.yodabaz.com/

thanks for your help.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 16, 2011 Dec 16, 2011

Put all your texts into one movie clip and then rotate that based on mouse position. mouseX controls rotation on Y and mouseY controls rotation on X.

Here's an example - start a new movie - add an image on stage, turn it into a movieClip (make sure the reg point is on center, not upper left) and give it an instance name of bg.

Add this code to frame 1:

addEventListener(Event.ENTER_FRAME, update);

function update(e:Event):void

{

    bg.rotationY = (275 - mouseX) / 30;

    bg.rotationX = (200 - mouseY) / 50;

}

This assumes the movie is 550x400 - so center is at 275,200

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 19, 2011 Dec 19, 2011
LATEST

@dmennemoh... thank you so much.
this is exactly what i need.. i'l post up the link to t site soon to you once itz done. thanks agn.


@Ted... juz wanted to get help. ur reply on t otr post wz juz too complicatd to understand for a beginner. but thankz anyways. i appreciate it.
{p.s - i dont think crossposting is a prob to anybody. help wz needed, so posted it.}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 16, 2011 Dec 16, 2011

I did not realize you had crossposted this.  If I had I would not have wasted my time trying to help. Please don't crosspost.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines