USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 5/24/09 06:22 PM
Sign-Up: 12/01/08
Posts: 652
When i have a hitTest, i want it to set a player to a certain coordinate. Do i set coordinates with _xscale/_yscale, or can i just say _x/_y ?
onClipEvent(enterframe) { if (this.hitTest(mario)){ mario._xscale = x, mario_yscale = y} }
just wondering.
My Name is CompleteDuck, and i'm a CompleteDouche Goldeneye Club
Posted at: 5/24/09 06:27 PM
Sign-Up: 10/13/02
Posts: 3,532
This site may explain your problem.
>:(
Posted at: 5/24/09 06:28 PM
Sign-Up: 06/09/07
Posts: 1,475
At 5/24/09 06:22 PM, CompleteDouche wrote: When i have a hitTest, i want it to set a player to a certain coordinate. Do i set coordinates with _xscale/_yscale, or can i just say _x/_y ? onClipEvent(enterframe) { if (this.hitTest(mario)){ mario._xscale = x, mario_yscale = y} } just wondering.
If you use xscale or yscale, you'll change the 'scale' - stretching.
You NEED to use x and y, as these are their coordinates, the xscale and yscale properties relate to the scale of the width and height - i.e. they stretch the MC.
Posted at: 5/24/09 06:30 PM
Sign-Up: 02/16/09
Posts: 226
_x and _y set particular coordinates for a MovieClip where as _xscale and _yscale change the % scale of that MovieClip. So something that is 100px wide has a value of _xscale or 100 but if you change this to say 50 the MovieClip will appear as 50px wide instead. Dont forget _x and _y are relative to the MovieClip your particular MovieClip is in.
Posted at: 5/24/09 06:35 PM
At 5/24/09 06:27 PM, Goonie wrote: This site may explain your problem.
Thanks, just what i needed
All times are Eastern Standard Time (GMT -5) | Current Time: 10:23 AM
<< Back