ActionScript 3.0 :: How To Set Boundry For B
Aug 31, 2009i have a movieclip A and B...B is inside A..Now i want to drag B in region of A.how to set the boundry for B
View 1 Repliesi have a movieclip A and B...B is inside A..Now i want to drag B in region of A.how to set the boundry for B
View 1 RepliesI am doing a game, in that I have to move the mc within a boundry limit (i.e. moving over a path). If the mc hits on the wall, it should not move in the direction, which we move.
Note: Not by just setting the x, y limit. By using the hitTest.
I have a file set up with a movie clip moving from side to side by itself and when it reaches the end of the stage it goes back in the opposite direction.[code]I know want to control the movie clips movement with arrow keys, just left and right so that it would stop when it reaches the edge and will only let me move it the opposite direction.I guess I'm just trying to set up a sort of template.
View 9 RepliesI've just started dabbling with AS3 coming from Director. Is there a way to detect the mouse x , y values beyond the edge of the stage? When tracing mouseX, mouseY on enterframe event the values stick at the last position within the stage when the mouse roams beyond the stage boundry.
An vague example of usage would be if you had a big movie clip as a custom cursor, and wanted it to smoothly disappear beyond the stage edge.