User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: Jumping/Falling/Climbing animations won’t play past the first frame

  1. #1
    Clicker Fusion 2.5

    Join Date
    Dec 2019
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Jumping/Falling/Climbing animations won’t play past the first frame

    I’m putting together a small demo level using fan-made Sonic sprites, but for some reason, when I jump, Fall or climb up the wall, only the first frame in their respective animation plays even though I told it to change animation sequence. Setting them to loop isn’t fixing it. Any ideas?
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    You have 4 commands: Platform Movement object - Object is moving / jumping not moving etc.

    These commands will trigger all the time, they're not enabled / disabled by flags or groups or anything.

    So if a command is triggered then it will start the animation. In other words, you are restarting the jumping animation 60 times a second, so it never has a chance to get past the first frame. You would have to delete those and include them in the actual events so that they are only triggered once.

    By the way, there's a block under properties that you can tick - Under Display Options - Visible from start - if you untick that - then the object is never visible and you don't have to put in any code to make it invisible.

  3. #3
    Clicker Fusion 2.5

    Join Date
    Dec 2019
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So, to clarify, instead of checking “change animation sequence to whatever” under “Object is whatever”, you check “set flag on”?

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    You should try to change it with the mouse click or arrow events:

    On pressing space bar
    change to the jump animation
    jump etc.

    Else you need to activate / deactivate stuff - by using flags or groups - to stop it running continuously.

    For example
    Platform Movement object is falling
    + flag 1 is off
    set flag 1 on, change animation to falling

    Platform Movement object is not falling
    + flag 1 is on
    set flag 1 off

    The stopped, walking and running animations should be handled by Fusion automatically - I don't think you need code there, unless the Platform Movement object interferes with that.

  5. #5
    Clicker Fusion 2.5

    Join Date
    Dec 2019
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, stopped and running are handled automatically, but stopping after running just makes the running animation keep playing.

    EDIT: Wait! It seems I do still have to code in the running animation or it’ll just be on the stopped animation while the object is moving.

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    Just check that you're not accidentally changing it yourself - because in quite a few places you manually code the animation changes i.e take them all out and then put back those you need.

    It's easier if you put all your global events into the frame - just cut it from there and paste it in the frame editor. Then you can click on your player object and it will show you just the events that affect that object - and you can check where you're changing the animations and where not. Once you have it all working, then you can copy / paste what you want back into the global events.

    (They use the same set of flags - but for some reason naming the flags doesn't work in the global event editor - it just uses the numbers - in the frame event editor you can use the name of the flags - if you rename them in the object's properties - instead of using flag 0 / flag 1 etc.)

  7. #7
    Clicker Fusion 2.5

    Join Date
    Dec 2019
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So, it looks like jump and falling are working properly, unless you move while jumping/falling.

    EDIT: Got it working, but it still looks like it just plays the first frame.

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    See if this attachment works for you.

    I've played around with it a bit - put all your global events into the frame - just so that I could read it easier. (I also changed your frame - because I couldn't get onto the platform - so I lowered it.)

    In other words - copy & paste this into your version - don't use this version.
    Attached files Attached files

  9. #9
    Clicker Fusion 2.5

    Join Date
    Dec 2019
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It works except for the climbing anim@tion, which is still stuck on frame 1.

  10. #10
    Clicker Fusion 2.5

    Join Date
    Dec 2019
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It works except for the climbing animation, which is still stuck on frame 1. It just doesn’t seem like that one’s going to work. And, yes, it worked in your example.

    EDIT: Great. Mobile site glitched and it wound up resulting in a double post.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 29th January 2020, 06:47 PM
  2. FPS Camera "Drifting" when jumping and falling?
    By Mrrobogavin in forum Firefly
    Replies: 4
    Last Post: 19th October 2019, 01:54 PM
  3. play a jumping sound - tutorial
    By Sparckman in forum Guides, Tutorials, Examples, Widgets
    Replies: 1
    Last Post: 25th July 2015, 12:30 AM
  4. Animation: shooting while jumping/falling
    By Hidronax in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th July 2015, 07:06 PM
  5. No collision when jumping/falling
    By rockesper in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th February 2012, 09:39 AM

Posting Permissions

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