
Welcome Guest
|
#1
|
||||
|
||||
|
Diagonal movie clip movement animation problem
I'm having a go at making a game and am currently just getting the basics scripts in. This isn't a major issue but I've got a character movieclip (_root.character_mc) which has four different animated frames for walk cycles. Moving left/right/up/down is fine, the problem is that when I move the character diagonally, the animation doesn't play. The code I'm using is as follows:
Actionscript:
if (Key.isDown(Key.RIGHT) && Key.isDown(Key.UP)) {
_root.character_mc.gotoAndStop("right");
}I tried using the PageUp button instead with the following: Actionscript:
if (Key.isDown(Key.PGUP)) {
_root.character_mc.gotoAndStop("right");
}..and this worked fine but I'm not wanting to use the PageUp button. Any suggestions? Last edited by Scottae : 07-07-2005 at 02:12 AM Reason: Format with AS tags |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Nest Movie Clip into Button | Dan7aylor | Flash CS3 / Flash 9 |
0 | 02-02-2011 11:29 PM |
| Movie Clip size when importing swf into symbol | MedievalFlash | Newbies |
0 | 12-31-2007 08:25 PM |
| Animation movie clip | flashIswhat?? | Newbies |
2 | 03-25-2007 02:34 PM |
| Basic Movie Clip Scripting Problem | LSW | Flash MX ActionScript |
2 | 04-29-2004 03:50 AM |
| preloading | plankd | Newbies |
4 | 08-25-2000 11:15 AM |




