Search:
Type: Posts; User: mkartstudio
Search:
Search took 0.02 seconds.
-
Hey, it works ! :) It seems that sign "!" in front of Key.is Down is the right solution. Thanks :)
-
hm...maybe I don`t know to explain the problem. Application should NOT go to the start if you press key UP...If you don`t press UP (and if MC is between 1390 & 1440), only in that case application...
-
I know I have to change the last step and I asked for help - What do I need to write insted of that wrong last step, or is there some other solution (to change whole code maybe with some other code?)...
-
Yes, I know it does not work. So, I asked what do I need to change in my code. I explained what I want to make: when movie clip arrives in certain position (_x), between 1390 and 1440, all...
-
Hi, I would like to make following situation: when movie clip arrives in certain position (_x), between 1390 and 1440, all application goes to the first frame (start). But, if MC arrived in that...
-
Hi, is there anyone who has experience with joining multiple SWF files into one? For example, you have a problem with your FLA project because your FLA file is too large and you have to separate it...
-
For limited movement, between point 20 and point 200, code is:
onClipEvent (enterFrame) {
if(Key.isDown(Key.RIGHT)) {
_x = Math.min (200, _x + 10);
}
if(Key.isDown(Key.LEFT)) {
_x =...
-
It works nice. Thanks.
onClipEvent (enterFrame) {
if(Key.isDown(Key.RIGHT)) {
_x = Math.min (200, _x + 10);
}
}
-
Hi, I use standard code for Movie_Clip movement:
onClipEvent (enterFrame) {
if(Key.isDown(Key.RIGHT)) {
_x += 10;
}
}
But in that case, MC can move unlimited and continue to move out of the...
-
-
Hi, I made save & load test app for my project but it works only in Flash Player 6 or less. When I choose FP 7 or more (and also FP 10.2) in my test.fla file and start app, it doesn`t work. Do you...
-
Yes, it`s better but that`s not it 100%. I see 2 problems here. First, movement of green object (_x) stops in first frame when it starts with animation. Second, movement in "end" frame doesn`t work...
-
Oh, it works nice. Maybe that letter confuses a little bit, but this is not a problem, I can move it from viewscreen. Thanks.
-
Uhh...I spent all day trying to find out the right reason... It works when are the same MC codes in both frames ( if(Key.isDown(Key.RIGHT)) {
_x -= 5; ) but if codes are different ( _x -= 5 in first...
-
Oh, no, this is not the right reason. Probably, code doesn`t work in more complex app because there are a lot of other codes in other layers :( ....
-
Actually, it doesen`t work as well when I put that code in more complex application. I think I know why. In first frame MC should go in wrong (-) direction by key.RIGHT, and in second frame it should...
-
hm...there is some mistake in line ''function swapFrame(targetFrame:Int){'' ... 'int' could not be loaded? In any case, I`m not sure where do I need to type that code. I have frame 1,2,3,4 and 5. In...
-
Well, it`s work for now but I`m beginner and I`m not sure will I have some problem with that code later. It would be very nice to update and post fla file with that new concept. You can update my...
-
Great! That`s it. Yes, I understand your comment but this is just simple test for code that I`m looking for. In fact, I made more complex application with many animations and drawings, that`s why I...
-
Hi, is there some code (actionscript 2.0) for following function:
onEnterFrame = function() {
if(YOU CAME HERE FROM FRAME 1 && Key.isDown(Key.ENTER)){
gotoAndPlay("certain frame");
}...
-
https://we.tl/t-WRWn5Rdc77 is Test.fla You should move mc (green box) left/right by keyboard and when application goes from frame ''start'' to frame ''end'' by counter ( var counter = 0; ), green...
-
Hm...it`s not a simple project (a lot of scenes, layers, movie clips and animations...) but I`m a simple AS2 coder :) I don`t know to use variable and that`s why I asked for code to track the...
-
OK, thanks again. But, is there some code that movie clip in frame 3 start from the same position (by _x coordinate) as it finished in frame 2? For example, player move that clip in frame 2 by...
-
It works now. I placed following code on the movieclip:
onClipEvent (enterFrame) {
if(Key.isDown(Key.RIGHT)) {
_x += 10;
}
if(Key.isDown(Key.LEFT)) {
_x -= 10;
}...
-
It doesn`t work. Please, can you write full code for both ways. Should I type onEnterFrame = function() or onClipEvent (enterFrame) before that if?
|
Click Here to Expand Forum to Full Width
|