| |
| |
| |
|
Page: 1 2 3 4 5 6
Comments:
<0> the mouse <1> that is the position from 0,0 <1> ove the movie clip? <1> of* <1> or 0,0 on the scene? <2> http://www.xanga.com/sinai/452934646/item.html <2> the origami is gonna be so bad *** <0> whole sentences please ! <3> but when i invert the _yscale my picture inside is moved 180 <0> dosn't you learned that in school ;) ? <1> didn't <4> ingenious <1> learn <2> see <2> that's why you don't get any help <2> cuz you wanna be a smart *** while asking for help
<1> sinai www.pimpwell.com <2> no thakns <1> anywya back to this _xmouse and _ymouse issue <1> I'm trying to understand how to get a movie clip to rotate following the mouse <1> using atan2() <1> I understand that everything is right angles I just dont understand: var dx = _xmouse - movieclip._x; <1> var dy = _ymouse - movieclip._y; <1> sinai you want to fight me? <2> i don't fight bitches <1> http://www.googlefight.com/index.php?lang=en_GB&word1=pimpwell&word2=sinai <1> you owned me anyway <2> hooray <0> ssurfer use _rotation = 180 <0> that will fix the rotation <3> thx <1> What is the difference between _xmouse and MovieClip._x ? <1> 0,0 for x_mouse is top left of scene and 0,0 for movieclip._x is top left of movieclip? <5> "0,0 for _xmouse" and "0,0 for movieclip._x" are senseless sentences <5> _xmouse returns the position of the mouse on the x-axis <5> movieclip._x returns the position of the movieclip on the x-axis <1> well the 0,0 means everything then <5> well, the position *is* measured as the distance from "0,0", if that's what you mean. but that's *not* what you're saying. <1> unless the movieclip's center is placed on the scene's 0,0 <1> ok I understand <1> brainy: you do any work with atan2()? <5> atan2 is quite simple, do you know trigonometry? <1> I'm re-learning it, has been awhile <5> atan2(dy,dx) is basically atan(dy/dx) <5> and that fits to the definition of tan(ang)=dy/dx <1> ok let me paint the picture of hwat I'm trying to do: the movie rotates and follows the mouse.. <5> that's quite straightforward <1> I have 0,0 for the scene that uses _xmouse and _ymouse to get the position of where the mouse is <1> right? <5> you usage of 0,0 confuses me once again <5> your, even <1> when I calculate dy and dx I use _xmouse and _ymouse <1> those are just values based on where my mouse is on the scene <5> yes <1> then I have the ._x and the ._y for the movie clip. <1> why does dy and dx need me to subtract the _xmouse from ._x <1> and the _ymouse from the ._y <5> dy is the distance on the y axis <5> you subtract to get the distance <5> as far as trig goes, you're theoretically making a right angled triangle between the point of the movieclip and the point of the cursor <1> can I get in to negative values with _ymouse and _xmouse <5> and the subtraction gives you the lengths of each side of the triangle <5> what do you mean? <1> for the scene the 0,0 is top left. <1> if I move the mouse out from the top or the left does it then go negative? or do I just get a null value <5> sure, it goes negative <1> ok. Im going to sit and draw out the dx/dy and apply the trig <1> hopefully it all comes together <1> thanks <5> you can try following this tutorial: http://www.albinoblacksheep.com/flash/trig <1> wow thank you again <5> or this one: http://www.codylindley.com/Tutorials/trigonometry/ <5> or just google for flash trigonometry tutorial, there are plenty <6> brainy do you have any games on your computer? <6> lol
<6> besides windows ones <6> :p <1> movieclip._x is where the movie clip sits on the scene? <7> anyone run a commercial website here <8> devvo wasn't u who asked yesterday? :P <8> wasn't it u* <6> omg <6> i scared brainy away :( <9> hello everybody <9> I have opened the chinese affiliate of this channel at #frash <9> currently taking ops <10> heh <5> nice <11> hi, does anyone know how to call a method every time the mouse is clicked? <11> like mouse.onClick or something (if that exists??) <12> arghh! my fonts aren't embedding :) <12> Al` - what's your prob? <12> mcInstanceName.OnRelease / ...onPress / onMouseDown <11> <11> hi, does anyone know how to call a method every time the mouse is clicked? <11> :) <12> take your pick <11> does onMouseDown mean every time the mouse is clicked? <11> to explain it a bit better.. <11> i have made a game and i want to attach a gunshot sound effect every time the mouse is clicked but ONLY when the game has started <11> ie. i don't want the sound effect to play when selecting from menus etc at the start <11> so i want to make it so that when a particular function is called, the sound effect is attached to the mouse somehow so that when it's clicked it'll play. But then when the function ends, i want it to revert back to normal again <11> that make sense? :) <9> onMouseDown = function(){} <9> you need to enable it only when game starts obviously, and disable it if game ends or user goes back to menu <11> ah brill thanks <11> how would i disable it though? <11> just do onMouseDown = function and leave it empty again? <9> delete onMouseDown; <11> oh isee <11> thanks a bunch ;) <9> usually, you relate it to a movieclip also <9> you could use game.onMouseDown = function(){} <9> where teh game mc only exsists playtime <12> do i have to do anything special to get fonts embedded other than embed in the properties? <12> i've even tried creating a new font in the library and used that font, but it still isn't embedding <9> how do you know its not embedding? <12> the font from typing some example text in flash is different to what comes out when authored <12> i see a kind of arial font when i publish :/ <11> is it possible to have 2 sounds playing at once? <11> for some reason, when i attach this gunshot sound, the background music stops playing <11> or rather doesn't start at all <9> thing is, if you are using a font on your machine, it would display even if it wasn't embeded <9> you would only be able to detect if it was embeded correctly by testing on a puter without that font installed <9> sounds to me like its a problem with the font <12> must be because it works with the others <9> what do you mean? <12> other fonts embed <7> anyone run a commercial website here <13> how can i set the y and x on this one? loadMovieNum("file.swf", 4); <14> watch this !!!! looool http://www.azzinoth.de/game/index.php?user=elyser <15> lol watch this?? <15> he thinks we are on dalnet :P <6> lol <16> morning all.. <17> !find rules <17> !help <17> !listkey <17> hey everyone, I guess i will start by saying a really new to flash. I started playing with a webtemplate that has a flash menu (home, contacts, etc). My problem is that I can not see where to add/edit the links <17> i was able to change the menu's apearance to how i would like, which took forever hahah, but im stuck on setting up the links <17> anyone have an idea of what i should be doing? <17> ive been reading forums like crazy, but i cant seem to find a straight forward answer <18> Hey all <18> http://pastebin.sekati.com/?id=Anonymous@d7756-c689f16e-t this isnt working.... it just doesnt load anything into the textbox <18> I check all the names and everythign <18> it doesnt say undefined, it doesnt change the textbox at all its suppose to <18> this is with flash 8 btw... <18> :( <19> hello
Return to
#flash or Go to some related
logs:
aracelisbochio #debian #beginner devon dubnyk #beginner #flash #windowsxp #delphi #windows #hardware
|
|