Character animation bug

Could you help me fix an animation bug in my game i'm making... It's not playing the animation correctly on the walking left animation, please help
Character code
onClipEvent (load) {
var ground:MovieClip = _root.ground;
var grav:Number = 0;
var gravity:Number = 1;
var speed:Number = 7;
var maxJump:Number = -12;
var touchingGround:Boolean = true;
var right:MovieClip
onClipEvent (enterFrame) {
_y += grav;
grav += gravity;
while (ground.hitTest(_x, _y, true)) {
_y -= gravity;
grav = 0;
if (ground.hitTest(_x, _y+6, true)) {
touchingGround = true;
} else {
touchingGround = false;
if (Key.isDown(Key.RIGHT))
            this._x += 5;
                if (this.currentFrame <= 1)
                    if (this.currentFrame <= 1)
                    gotoAndPlay(2);
                    else
                    nothing
if (Key.isDown(Key.LEFT))
            this._x -= 5;
                if (this.currentFrame <= 1)
                    if (this.currentFrame <= 1)
                    gotoAndPlay(3);
                    else
                    nothing
if (Key.isDown(Key.UP) && touchingGround) {
grav = maxJump;
if (Key.isDown(Key.UP))
                if (this.currentFrame <= 1)
                    if (this.currentFrame <= 1)
                    gotoAndPlay(4);
                    else
                    nothing
if (ground.hitTest(_x+(_width/2), _y-(_height/2), true)) {
_x -= speed;
if (ground.hitTest(_x-(_width/2), _y-(_height/2), true)) {
_x += speed;
if (ground.hitTest(_x, _y-(height), true)) {
grav = 2;
Game file
http://www.mediafire.com/?lvzr2927h1e75wo

That is AS2 code.  You should look for help with it in the AS2 forum... 
http://forums.adobe.com/community/flash/flash_actionscript?view=discussions

Similar Messages

  • FCPX Text Animation Bug

    Hi Everyone!
    I'm working through a 30+ minute video sequence showing photos and video clips of an event I attended recently.  This is my first foray into FCP.
    I've come across a rather weird text animation bug, where text is animated onto the screen incorrectly.
    So what I've shown above is one typical text box I've added for narration, using the "Typewriter" effect.  Of course, the text should render (appear) on screen one character at a time, but I have been getting a random number of characters at the end of the block that do not animate.  The only way I have been able to get these blocks to animate correctly is to add enough spaces to the end of the text to force FCPX to rerender the block correctly.
    At some point in the future, this bug resurfaces, and I have to delete the spaces, and re-add them, to get the block to render and animate correctly once again.
    If I go and "share" the resulting sequence, the bug is rendered into the sequence. 
    Deleting the text block, and adding a new block, doesn't seem to help.
    I have reported this as a bug to Apple.
    It's not just the Typewriter text effect doing this.  As far as I can see, it is every text effect bar the lower thirds (so far as I can see).
    Any ideas on how to get around this?  Does anyone else experience this bug?

    I'm starting to pull my hair out on this one.  My video is essentially ready for final rendering, but I've hit a snag re the rendering itself.
    Check out this image I've just snapped:
    http://www.becsta.com/pics/skitch/FCPvCompressor-20110918-225758.jpg
    On the left is the Compressor 4 preview pane.  Note that the text animations are screwed up, just like the screenshot at the start of this discussion.
    On the right is the FCPX preview pane, showing that the rendering is complete and correct. All I did was select "Send to Compressor", and skipped the Compressor timeline up to review the same frame.
    These text blocks are using the "Typewriter" effect.
    So, what do I do to fix this once and for all?
    Build it from scratch in Motion?
    Any ideas?
    /cue Princess Leia voice/ Help me Obi-Wan Kenobi, you're my only hope!

  • New After Effects CC 2015 Character Animator Feature

    Hi, the new After Effects CC 2015 character animator feature looks amazing. Is this compatible with Photoshop CS6 or would you have to use the Photoshop CC version?

    > How do you download a free trial version of AE CC
    "Free Trial" button in the upper right corner of this page: http://www.adobe.com/products/aftereffects.html
    > would you be able to record the animated facial features and then tie this in with the pre-recorded sound afterwards?
    Yes, you can mix and match separate performance tracks ("takes") per puppet.
    > when you take the finished animation into AE can you further manipulate in the AE timeline - facial features, body etc?
    Once you're back in AE, it will be pixels, so you'd do further edits in Character Animator before bringing into AE. Though you could, say, just do the head or lips in Character Animator and then attach them to a body done in AE.
    > I guess I am wondering if this software would be good enough for professional character animation.
    If it's not, please us know why so we can fix it! Note that this first version is a "preview" so don't expect the usual polish & completeness of a shipping app. It will install (as a companion app) automatically as part of the next AE CC update.

  • For character animation is frame by frame, motion or classic tween?

    Hi, i'm very new to adobe flash. I'm using cs5
    Am i right in thinking that for detailed character animation, of cartoons or people, i would still need to do frame by frame animation, and then probably use tweening for big movements like making that same animation move across the screen?
    Your responses would be appreciated.

    I am not an animator (most of the time) but if I were I think I would probably end up using timeline tweening wherever it helped make things easier, especially for what you are calling big movements like having things zoom or move or to have a background moving if the animation involves characters moving.

  • E7 SMS character count bug

    belle introduced, amongst painful others, an SMS character count bug, where, when you type an SMS with the hardware keyboard, the SMS character count is not displayed. it is displayed only when you type using the onscreen keyboard.
    recently e7 received a calendar fix. any idea whether the SMS character count bug fix has been issued?

    Hi DDeridex & metal_might
    Have you tried to re-install the software of your devices using Nokia Suite? If not yet, maybe worth trying. Go to Tools > Software Updates > Re-install.
    Hope this will help you. 
    If my post helped you, please don't forget to click on the "White Star" and if it resolved your issue click on "Accept as Solution"

  • Flash character animation

    I am creating a CBT for E-Learning. In the CBT we have used
    animated character, voice over, play and pause option.
    By default play button is selected, when user click on the
    pause button it will pause the character movement like (body
    movement, eye-popping and lips movement) and as well as voice over.
    Click on play button it start the all the movement from where he
    paused it.
    I have faced following problem while doing the same:
    1) For Play and Pause option, I have made the character
    animation in flash timeline, and it is very time consuming to do
    the lips movement in timeline. If I put the lips in a movieclip
    then, clicking on Pause button it will not Stop.
    Now I need the solution how to reduce the time to do the same
    character animation in flash timeline with Play and Pause button.
    Any idea.....! Pl revert...
    Regards
    Sonum

    If I understand you have done the animation already, in a
    separate movieClip
    but can't get it to pause... If that is the case just add the
    code to your
    pause button to affect more than one clip. Something like:
    pauseButton.onRelease = function(){
    mainCharacter.stop();
    mainCharacter.lips.stop();
    You can have your buttons affect as many clips as you need...
    you could even
    use an array to hold clip references and use that in both a
    play and pause
    button:
    var myChar = [mainCharacter, mainCharacter.lips,
    mainCharacter.eyes];
    function animateChar(thePlayState:Boolean){
    for(var i = 0; i < myChar.length; i++){
    if(thePlayState){
    myChar
    .play();
    }else{
    myChar.stop();
    playButton.onRelease = function(){
    animate(true);
    pauseButton.onRelease = function(){
    animate(false);
    HTH
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Flash character animation help

    Greetings,
    I have a character animation that involves a lot of walking, I currently have the feet and upper body fully animated, I was wondering if there was a simple way to get the upper and lower legs to track the feet and hips.
    I animated the feet and upper body by creating keyframes and manually positioning each symbol at every keyframe, I was just hoping there was a simple solution for the legs rather then having to manually position each one at each keyframe.

    Hi,
    If you want to get started with the flash animation make sure to start learning how to use all the image editing tools that may come handy with your animation. You animation doesn't seem that complicated but it will take quite some time to gather all the symbols and images(cartoons).
    Here is a website that offers some tips regarding basic flash animations:
    http://www.entheosweb.com/Flash/default.asp
    Look into these three main guides(it will give you a better understanding on what to do with your objects and actions)
    Motion Tween
    Motion Guide
    Bouncing Effect
    Hope this helps you,
    Vicente Tulliano

  • Character Animation Suite

    Hi all,
    I hope this is the right place to post this:
    I'm looking for a character animation suite for AE. An ideal solution would be this: a plugin which let's users create a rig, animate it and save the complete animation (or animation-loop) to be used on different characters. The ability to blend between different animation-sets would also be really neat. I know that e.g. 3DSMax has these functions. Is there anything remotely similar for AE? Do you have any pointers?
    Thanks, Michael

    I am not aware of such a comprehensive package.
    For character rigging, you can use iExpressions or DuiK.
    iExpressions can do way more than character rigging, but here are some tutorials that give an idea where it is helpful for character animation
    http://mamoworld.com/tutorials/puppet-animation-ik-expressions
    http://mamoworld.com/after-effects-expression/change-marker-2d
    iExpressions - aescripts + aeplugins - aescripts.com
    Maybe you also explore the other scripts at aescripts in the character animation category
    Character Animation - Animation - After Effects - aescripts + aeplugins - aescripts.com

  • Character Animation: Movie Clip or Graphic Symbols?

    Should I use Movie Clip or Graphic Symbols for Character
    Animation? What do people who make TV shows use. If I'm not
    planning on manipulating any symbols with ActionScript and I'm not
    using a symbol that requires it's own time line like a walk cycle,
    is there any reason to use movie clips symbols? If I put my
    animation on the web will it download noticeably faster if I use
    graphic symbols instead of movie clip symbols?

    What I meant is, there are different ways of setting up a
    workflow for Flash animation. Studio animators are trained in
    traditional frame-by-frame animation. So their workflow is usually
    to do the same in Flash: make every frame a keyframe, then copy and
    paste everything from one frame into the next, then make whatever
    changes are needed. A classically-trained animator can get a good
    momentum working this way.
    But for making the most streamlined SWF files, this method is
    not the best. It's much better to rely on library assets, place
    major parts or sets of parts on different layers, and only keyframe
    those things that need keyframes. If good planning is done in
    advance, it can be just as fast as doing straight-ahead keyframed
    animation.
    Either method may end up with the same result. But when you
    want to go back and tweak things, it's a whole lot easier to do it
    when method 2 is used.
    I'm sure I'm not very clear. PM me and I'll send you a list I
    created of "best practices" which I give to e-card animators.
    One of these best practices is: place a thumbtack on the "G"
    key on your keyboard. The very WORST habit that is taught to studio
    animators using Flash is to use neither Graphics nor Movie Clips,
    but to immediately click Ctrl-G every time they draw something.
    This creates a Group. It's faster than hitting F8 and typing in a
    name, but it causes ENORMOUS problems, especially when doing
    retakes and revisions. And it results in gargantuan SWF files.
    I literally GLUED a thumbtack to one one animator's keyboard,
    since he seemed unable to remember this rule. Luckily this wasn't
    in America, or I'd have been charged with grievous bodily
    assualt.

  • Audio/Animation Bug, with a work-around

    This is one of those cases where TechSupport believes a
    work-around is fine to something I would consider a bug. Took me a
    while to find the solution so I'd like to share with everyone my
    problem/solution.
    Background: I have a presentation with recorded audio on a
    slide that uses custom animation; in this case I've drawn circles
    and squares against an image to highlight a point. The animation is
    "on click" specific per Breeze. One of those animations creaps in
    slowly.
    Issue: When that same presentation from the Content Library
    is shared in a Meeting, in my opinion all sound should be
    "disconnected" unless using the presentation playbar. However, I
    have found that during the building of the screen (using Next/Right
    Arrow), the "sound behind the animation" comes through. Not
    terribly anoying for fast entrances, etc., but when something
    creaps in, you can have a lengthy audio playback during that time.
    IMHO, this shouldn't happen.
    Solution: (two; 1 TechSupport, 1 mine) TechSupport says to
    save the presentation as a different file name, close and delete
    the .ppc file, reload into PowerPoint, accept the load without
    audio and republish. Then in the meeting room simply select that
    renamed file. Major drawback on this point: I've got a file upload
    limit on my account. I've just doubled the space required per file.
    My solution was to use the Pod Options on the share, select
    Show Presentation Playbar and mute the audio. Simple.
    However, I still think the audio snippets behind the
    animations are a bug.
    Thanks for letting me get the word out about audio behind
    animations.
    JR

    First Try this:  launch iPhoto with the Option key held down and create a new, test library.  Import some original photos from other library that are not rotated properly and check to see if the same problem persists. If it does persist do the following:  make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home()/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
         User/Home()/Library/Caches/com.apple.iPhoto folder. 
    Click to view full size
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    If still not working correctly continue with the following:  apply the fixes below in order as needed:
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.

  • XML export character encoding bug

    I've found a bug with Final Cut Pro XML export for any projects where media has a "#" in the name. Premiere Pro passes the "#" character into the file pathname instead of encoding it as "%23". The result is any clips with names such as "clip #1", "clip #2", "clip #3", etc. will be broken whe the XML is imported by another application. Compare:
    Premiere Pro XML (does not work):
    <pathurl>file://localhost/Volumes/P50%20Production%20Drive%202/CNMT%202011-12/CNMT%202011- 12%20Final%20Cut%20Pro%20Documents/Mom%20is%20Never%20Wrong/
    CNMT_MomNeverWrong_Street_12_14_11/Clip%20#2.mov</pathurl>
    Final Cut Pro XML (works properly):
    <pathurl>file://localhost/Volumes/P50%20Production%20Drive%202/CNMT%202011-12/CNMT%202011- 12%20Final%20Cut%20Pro%20Documents/Mom%20is%20Never%20Wrong/
    CNMT_MomNeverWrong_Street_12_14_11/Clip%20%232.mov</pathurl>
    Note the difference in the clip name. A global search and replace of "#" with "%23" makes the Premiere Pro XML work properly.
    This bug is easily repeatable and verifiable. I've filed a bug report but wanted to post here just to give folks a heads up.
    Thanks for your help!
    --dhl

    This tech note will help:
    http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsunone%2F7717&zone_110=7717%2A%20
    ka

  • Character Count Bug? (IDCS4 WinXPSP3)

    Here's a little bug. Apologies if it's been mentioned before.
    The Info palette tells you how many characters your selection contains. If you select the word "hello" the Info p. says: "Characters: 5"
    If you select an entire line that happens to contains a foontnote marker, the character count includes all the characters in the footnote itself. So while an average line might have 70 characters, a line containing a footnote might appear as though it has 1000 characters or more (depending on the length of the footnote).
    Now, as scripters will be aware (and please correct me if I'm wrong), the footnote marker is the parent of the footnote text. So that's probably where the bug comes in.
    But I don't think this should be reflected in the Info palette.
    Thanks,
    Ariel

    Have you reported it? Adobe - Feature Request/Bug Report Form

  • Photoshop CC: Layer Merging Behavior with Timeline Animations (Bug?)

    Hello,
    we're working a lot with the Photoshop timeline in our company. After upgrading to Photoshop CC we encountered a behavior that was different with CS6.
    Picture a file with a timeline animation consisting for example of 8 frames, with 8 layers, each layer's visibility exposed on a single frame (layer 1 exposed in frame 1, layer 2 exposed in frame 2 etc) and all other layer not visible.
    In Photoshop CS6, if I were to create a new layer for example in frame 4 of my timeline above layer 4 (which is the only visible layer in this frame) and merged it back down onto layer 4 (by selecting it and pressing the shortcut CTRL+E), the resulting layer inherited all the exposure settings of layer 4, but did contain the merged visual content of layer 4 and the previously new layer above it. This is what I want.
    Now in Photoshop CC, when doing the very same action, the layers are merged and keep the naming of layer 4, however the visibility flag is not inherited properly. The resulting layer is exposed (visible) on all frames in the timeline, whereas it actually should only be exposed in frame 4.
    Also note that the timeline option "New layers visible in all frames" is deactivated. So even if Photoshop treated the merged layer as an actual new layer, it shouldn't expose it's visibility in all other frames.
    The only workaround I've found so far is enabling "unify layer visibility", hiding the layer, then disabling "unify layer visibility" again. This is annoying however, and the entire new behavior seems like a bug to me. Can any of the developers comment on this? Thank you.
    Regards,
    Hannes Drexl

    My only solution so far is to avoid using CC and sticking with CS6.  Thanks Adobe for not letting me enjoy the other great features of the PS version you seem to care about updating and improving.  Since PS is the main reason I even subscribed to creative cloud, it would be nice to at least know this problem is being resolved in the future.

  • Character animation workflow between AE, PS, and PP. Help!

    I just finished my first animation test. Please check here:
    http://www.youtube.com/watch?v=GN7Xjzxi568
    My general workflow... (Creative Suite 5 on a 2011 27" iMac 2.7GHz quad-core Intel Core i5, 4 GB RAM, 1 TB 7200rpm HD, AMD Radeon HD 6770M w/ 512 MB)
    The character is created in PS. I draw the character and then cut out each body part as a separate layer to make a puppet for animation in AE. Since I am making my characters in PS, I need very large files because I may want a close up on the characters face for instance. The .psd that I import into AE is around 7000x7000 file.
    As you can see in my video, my backgrounds are video. I am using a Canon 5DII shooting 24fps @ 1080p.
    Let's just say I had many, many issues getting the video above to work. I don't want to recount what I did as it was most likely the wrong way to do it.
    My question is, what should my workflow be?
    Should I cut the background video in Premiere Pro, and then do a dynamic link between PP and AE, do my animation on top of the cut video sent from PP, and then send it back to PP after I'm done?
    ALSO, the 18 second video above took around 2 hours to export. My final output is always 720p, so should I be batch converting all my video before hand to 720p as it will make editing and exporiting a lot faster? Will adding RAM to my computer make rendering/exporting faster, or will that just give me general performance increase? It's only about $100 to upgrade to 16GB of RAM and I should probably get on that. Or is rendering/exporting only reliatn on the CPU/GPU?

    My good friend Angie Taylor is one of the best at this style of animation and she has put up a bunch of free tutorials. You can find them with a quick Google search. This is one of my favorites. It shows you how to tie all of the body parts to a single control layer so that you can simplify the animation procedure and speed up your workflow. You should also check out her blog.

  • Control the character animation in adobe edge

    Hello ,
    i have a character, i want to control the animation to use left arrow key and right arrow key.
    When i press left arrow key the character run animation call.
    When i press right arrow key character back run animation call.
    when user don't press any key the character stop animation call.
    Please help me, i am designer i don't know codding/
    Thanks
    Chetan Thakur

    Hi,
    Try this tutorial and see if this helps
    http://www.heathrowe.com/adobe-edge-simple-keydown-trigger-animation/
    The right arrow key is 39 and left 37
    if (e.which == 37) {     // key left
    this.play("sun");    //name of your character instead of sun
    Hope this helps

Maybe you are looking for

  • Internal table value checking in custom table using SQL...

    I have a table which has following fields: X1 TABLE (ZCONfig custom table)      LIFNR  land1                    123      br                     234      br                      456      br                      567      Gr and X2 TABLE: (Internal tabl

  • Issues deploying to Glassfish - Cast exceptions (DefinitionContextAgeable)

    Hi there, hope you can help me JDev 11.2.3.0 with Glassfish 3.1.2.2 I used ADF Essentials and all works fine for a small fast application I made. But I'm working on a bigger project (without using features not included in ADFE). All is configured as

  • Getting correct  row from cartestian join..

    I have two tables that look like. The two tables have key and date as columns which for a composite primary key :- table1 key date 1     dt2 1     dt3 1     dt4 table2 key date 1     dt0 1     dt1 1     dt3 left outer join on table1. if matching date

  • Connecting to iMac G4 (with USB1.1)

    Hi. I'm experiencing some problems connecting my iPod Touch to my iMac G4: time-outs, "cannot connect to iPhone", etc. This has probably something to do with the fact that my iMac doesn't have USB2.0 (http://support.apple.com/specs/imac/iMac17-inch1G

  • Sync is currently experiencing problems

    In android,Sync is not working. I've paired successfully my device but then every time I try to sync IIreceive the message "Sync is currently experiencing problems. It will be back shortly" I've checked the sync servers and they are fine. IIonly have