ActionScript 2.0 :: Move My MC To A Certain Point Then Reset?
Apr 19, 2002
I'm trying to write the Actionscript code that will move my MC to a certain point then reset. In other words, I want my MC to move left until it reaches -650 of the X position then start all over again fro 750 of the X position.Here's the code I've written which doesn't work:
onClipEvent (enterFrame) {
_x-=2;[codde]...
View 6 Replies
Similar Posts:
Apr 12, 2007
It's been a long time since I've done any work with actionscript, and alas I've forgotten nearly everything. I've tried to look for a tutorial that would explain basic animation with actionscript, but the one that I found on Kirupa was no longer there.
Basically I'd like to do this:On the stage I have a movieclip and I'd like the movieclip to move along the x-axis to a certain point and then back to the starting point again. The moving speed of the movieclip should also be adjustable.
View 8 Replies
May 3, 2006
How can I move a point (or circle) slowly and the point let behind a line.When the point turn back the line will be erase.
View 8 Replies
Mar 27, 2008
how to use these in order to make an object move from point A to point B in an arc.Think of that classic game where you have to input the angle and power and try to hit your opponent.
View 1 Replies
Jan 9, 2006
Basically what I like to ask is how to move a object from one point to another point based on the point tat you have clicked on a graph. For example, If I click on this coordinate (2,3) on graph, the object (movie clip) will move to that point.
View 3 Replies
Nov 11, 2003
i'm trying to zoom in on a picture at the specific spot where the mouse is clicked. ie if the mouse is clicked in the lower left corner, the pic gets bigger from there, not the center of the pic. the only way i can think of to do this is to reset the registration point to the clicked position. is this possible? is there another way to go the job done?
View 12 Replies
Feb 8, 2008
When I right-click a symbol the options "set transformation point" and "reset transformation point" come up. They don't seem to do anything for me. I thought it would center them or something. This is not the case. I have the white transformation point in one corner in one keyframe and a different corner in another keyframe I click "reset transformation point" on both frames and they don't move.
View 3 Replies
May 8, 2004
if i move the cursor to a point A, it automatically moves by itself to a point B. then if i move the cursor from B to a point C, it bounces away to a point D. i stumbled upon this site while googling around. i'm not a techie, but yeah, i can handle word processors.
View 5 Replies
Sep 11, 2010
Ok, so i am working on a platform game, I am new to making games, but I enjoy it! I need a little help with resetting a Move Clip if there is a hitTest! MY EXAMPLE: When the HP bar hits the bottm, my character resets. I want him to reset AND reset the the MC, or give full HP again. So, how can I take my code below and make it so that when the hitTest is true, it ALSO resets my movie clip?
[Code]...
View 5 Replies
Jul 7, 2010
I have 2 overlapping movieclips on the stage. Both are instances of the same movieclip, but with different names. One bigger then the other, due to a magnifying effect. (I have tried to out-rule that code by the way, so its not that). The intention is to make both movieclips play when the mouse is over the stage and then stop as the mouse leaves the area. Seems simple and I have done that alot of times with other animations.
[Code]...
View 1 Replies
Feb 21, 2009
I'm having trouble with this function I created. It should move the clip to a specific given point, but it's not doing it. here's the code:
Code:
public function moveThis(pointX:Number, pointY:Number) {
if(Math.abs(clip._x - pointX) < 20) {
clip._x = pointX;
[Code]....
This just doesn't work, is there another way to do this? the inputed x and y values (pointX and pointY) are the points I want to move to, and clip is the movie clip that I want to move there. The clip moes across the x distance first, THEN the y distance. I need it to do both at the same time.
View 1 Replies
Sep 29, 2009
Ok -- so I figured out how to tween in CS4, but how the heck to you adjust the tween? If you decide you want it to be a few frames longer or shorter? It wont let you drag the tween point! The only thing I've found that works, is deleting the tween and then making a new one. Which, is absolutely rediculous -- I know there has to be a way to edit it once you make it.
View 6 Replies
Nov 10, 2009
Can You with a code move the point where the mouse is placed?
Example. If you have a row of buttons on a frame and when you click one of the buttons you don want the mouse to be on that very same spot because on the next frame are the buttons on the same place. You want the mousearrow to be placed on the top of the frame.
View 1 Replies
May 30, 2011
I messed up some the timing in some parts where there needs to be audio, and I don't want to go to the very back of the timeline and make all my frame sequences fit the audio that way. I want to select all the clips from one point on, drag them back until the audio fits, and then go to the next part the audio doest fit and do the same. Unfortunately, I've spent at least 20-30 minutes googling and trying different things in Flash that haven't worked.
How can I select all the clips on the timeline before a certain point so that I can drag them all back a few seconds? (Without having to shift click all my clips, obviously).
View 1 Replies
Feb 4, 2009
how can me move point arrount circle
just i want the point that you press on it and move it arrount the circle
View 0 Replies
May 5, 2009
Is there any way to move or shift the transformation point of an object at runtime ?
View 4 Replies
Nov 2, 2004
i want to move a certain movieclip from a point to another , and i know this can easily be done with a few lines of code ...but just a few days ago i ran across some piece of code that you just entered the x and y positions of were you wanted it to go and the speed at which it should go there...i even saw a command were it would slide in to the position ,, slowing down the closer it got...
View 1 Replies
Feb 22, 2011
How would I move a movieclip to a defined point?
View 4 Replies
Dec 13, 2009
When motion tweening is it possible to have an object move from point A to B and also have it rotate at certain points?
View 2 Replies
Oct 30, 2010
Move Registration Point on a uiloader Is this possible?
View 2 Replies
May 30, 2011
I'm having some troubles with an animation I'm working on. I messed up some the timing in some parts where there needs to be audio, and I don't want to go to the very back of the timeline and make all my frame sequences fit the audio that way. I want to select all the clips from one point on, drag them back until the audio fits, and then go to the next part the audio doest fit and do the same. Unfortunately, I've spent at least 20-30 minutes googling and trying different things in Flash that haven't worked.How can I select all the clips on the timeline before a certain point so that I can drag them all back a few seconds? (Without having to shift click all my clips, obviously).
View 1 Replies
Jun 21, 2011
Basically if I have a sprite for example located at (10,10) I want to move it to say (50,100) and the whole process to take 2 seconds or whatever duration I specify. What is the exact math behind this? I was using a distance based solution to determine speed but was just using a random modifier to control the process. I need something more precise to execute exactly over a set duration.
View 4 Replies
Jan 1, 2011
I am trying to get a circle to move across from one horizontal point to another. I want this to circle to repeat itself after a certain amount of time but for the previous circle to carry on moving. I also want the circle to appear at different vertical points.
[Code]..
View 1 Replies
Jan 9, 2011
I want to know how can i make a point (movieclip) move, i know that if i double click the movieclip e can manually change the 'x' an 'y' values and this way the point will move.
It is possibly to link this with java? And make java pass the x and y values to the animation?
View 4 Replies
Nov 18, 2011
I am trying to make a little demonstration of how animals hunt . I searched everywhere but I couldn't find how to make what happens in the next application :(press on the scorpion lesson and watch it)Does anybody know how can I get my movie clip to go to a place inputed by the user (just like the scorpion goes to it's pray in the application ) ? Please don't just show me how to make it instantly appear in that place , I want to make it "walk" till there .
View 1 Replies
Apr 11, 2006
Is it possible with ActionScript to move a MovieClip's registration point?I'm having issues with scaling an object (via actionscript) from different points (left side, right side, centre) and getting round off error.Without moving the registration point, I need to fake the scaling to make it look like it's scaling from the right or centre. (registration point is at the left) I do this by scaling it then using some trig move its _x, _y coordinates depending on it's _rotation. Unfortunately, this is producing some very small roundoff error that propogates slowly but surely, upwards of 1 to 10 or more pixels. As it's a pseudo-ACAD application I can't really have that. I also tried using the localToGlobal and globalToLocal functions with the same results.
However, if I don't need the _x,_y transformations (the registration point is in the correct spot for the particular scale) then the round off error no longer applies.So yeah, I looked around a bit but couldn't find anything for doing this in ActionScript. (mostly tutorials on how to move the registration point by converting to a symbol or free transform tool)
View 4 Replies
May 5, 2011
It's the beginning of a Monkey Island / Grisworld The Goblin kind of ultra short and simple game. Actually this is the only think I have to figure out.
Actually it already works if you click the x where it's positioned on the screenshot, but it doesn't work other places. And yes I've tried everything, and I'm just nok smart enough to figure this out.
More precisely it's the alternative path, after the arrow collides with the circle, that's causing me problems - since it's going to find it's way to the point clicked on stage.
View 1 Replies
Sep 26, 2009
I just want to add/delete a single frame (not a second worth of frames) inside a motion tween.
View 2 Replies
Mar 19, 2009
I am just learning AS. What I am trying to do is make my movie clip move to a certain point and stop there if it is clicked on. All I really know is that I was told to use on(release).
View 1 Replies
Sep 2, 2010
How do I move the origin point, or zero point, of a MovieClip to the same origin point of the stage without scripting in Adobe Flash CS3?
Example: While I'm trying to move objects within a MovieClip, the origin point is at (stage) 200,-300. This means that when I put objects in a MovieClip, the objects' X,Y coordinates, as displayed in properties, are off by that much.
This point is way off the edge of the stage and I'd like to move it back to the stage's origin point so that my X,Y coordinates are meaningful.
View 1 Replies