User Tag List

Results 1 to 3 of 3

Thread: Walking animation only plays first frame

  1. #1
    No Products Registered

    Join Date
    Feb 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Walking animation only plays first frame

    I'm currently developing a game for an assignment. I'm following almightyzentaco's basic side scrolling platformer tutorial, using a platform movement object. Falling, jumping, and idle animations work fine. I have made it so that when the right or left keys are pressed, the sprite changes direction and plays the walking animation in the respective direction. However, I have 8 frames in the walking animation, and when the key is pressed, it only plays the first frame. The object then moves left and right, however, it's stuck at frame 1.

    Why the HECK doesn't it work?!

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,394
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Did you click the loop animation? Other wise it will only play once, also check that your animation speed isn't set to zero.

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Volnaiskra's Avatar
    Join Date
    Jan 2014
    Location
    www.sprykegame.com
    Posts
    1,953
    Mentioned
    51 Post(s)
    Tagged
    0 Thread(s)
    No way to know for sure until you show a screenshot of your code, but it's likely that you're doing something like this:

    --repeat while LEFT is pressed
    -------change direction("player")
    -------change animation sequence to walking
    ------move player left

    In the example above, the animation is changed every single frame. In other words, it will be constantly reset to the beginning of the animation, and the player will never see the later frames. If you've got something like that going on, then you need to make the animation change only once. For example:


    --repeat while LEFT is pressed
    -------move player left

    --repeat while LEFT is pressed
    --only once when event loops
    -------change direction("player")
    -------change animation sequence to walking

Similar Threads

  1. Walking Animation Freezing at frame 4/4?
    By Alexandress in forum Fusion 2.5
    Replies: 7
    Last Post: 20th May 2017, 02:58 PM
  2. Windows sound plays on restarting frame
    By HwoThumb in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th January 2016, 04:45 PM
  3. Odd walking animation issue
    By Thrawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 21st February 2011, 01:35 PM
  4. Random animation frame, still plays?
    By Raylax in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 15th October 2008, 08:04 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •