LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-06-2005, 08:18 PM
OS.'s Avatar
OS. OS. is offline
Registered User
 
Join Date: Jul 2005
Posts: 53
Rep Power: 8
OS. is on a distinguished road
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
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 01:57 PM.