Community

Cool Little Trick I figured out.

Posted Jul 31, '08 at 12:13am

Programpro

Programpro

282 posts

Gold - Squire

Cool whichello, I will try that.

 

Posted Jul 31, '08 at 12:23am

Klaushouse

Klaushouse

1,225 posts

Gold - Knight

Very nice Which. But all I do is have a missile mc within an empty mc that goes this._x += 5; cause as you rotate it, it will always go forward, because it is going x inside the mc with is whichever direction the missile points(which is the mouse).

 

Posted Jul 31, '08 at 12:26am

Programpro

Programpro

282 posts

Gold - Squire

Klaus, his equation is for pointing, not following, like urs. And I think urs could use some work, Klaus, no offense.

 

Posted Jul 31, '08 at 12:27am

Klaushouse

Klaushouse

1,225 posts

Gold - Knight

What do you mean mine? I haven't written anything!

 

Posted Jul 31, '08 at 12:29am

Danstanta

Danstanta

921 posts

Wood - King

What do you mean Programpro?

 

Posted Jul 31, '08 at 7:45am

crazynaitor

crazynaitor

1,935 posts

Wood - King

Yea what do you mean?

 

Posted Jul 31, '08 at 9:35am

darkd00m

darkd00m

113 posts

Iron - Squire

this was help? more like a math lesson -_-

 

Posted Jul 31, '08 at 11:18am

Programpro

Programpro

282 posts

Gold - Squire

geez...tagteamed against me...I mean the thing where there is a movie clip in another and the one inside changes x while the outer one rotates.

I'm sorry, Klaus, maybe I misunderstood it, but that's how it sounded to me. Just a little overcomplicated (no need to triple-team me  : (

Also, darkd00m, I was wondering when someone would comment on confusing trigonometry. In this case, my equation makes a right triangle where the hypotenuse (longest side) is a line from the object to the mouse. Then, by using inverse (arc) tangent and dividing one side by the other, I find the angle nearest the object and that tells me how to rotate it.

Sorry if that's still confusing!

 
Reply to Cool Little Trick I figured out.

You must be logged in to post a reply!