User Tag List

Results 1 to 4 of 4

Thread: Animation: shooting while jumping/falling

  1. #1
    No Products Registered

    Join Date
    Aug 2014
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Animation: shooting while jumping/falling

    Is there out there a good platform movement example? I'm trying to make my own but I'm quite sure many things could be made better.

    For now I have troubles with the shooting animation: if the player is running and 'spacebar' is pressed, the player should stop, play an animation and shot an object. If the player is jumping/falling while the key is pressed, he should play another animation and shot the object, then return to the jumping/falling anim.
    The problem is that I'm trying to control all the possible characters using the same conditions, so instead of using 'While animation x is playing', I have to use a timer. Any ideas?

    Basically all the characters are at 0,0 from an invisible box object. When you move the player, you actually move the box object. Upon pressing 'S' the current character becomes invisible and the following one becomes visible. In this way you can switch the character you're using. The animations of all characters are controlled via flags (set as alterable values of the box object).

  2. #2
    Clicker Fusion 2.5
    Del_Duio's Avatar
    Join Date
    Sep 2008
    Location
    Cygnus X-I
    Posts
    939
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You'll want to make it so that the shooting animation is part of your player movement conditons like so:


    Space Bar is pressed
    +animation "shooting" is playing (NEGATED)
    -> change animation to shooting and shoot the gun


    Repeat while Joystick is pressed right (or left or whatever)
    +animation "shooting" is playing (NEGATED)
    -> Move the guy right or left


    Also what I've used before to control 4 different hero sprites at the same time is I only mess with one of them, and then have the other 3's position, animation, and animation frame set to that main one. Then you can just use one variable to determine which guy gets to be visible while the others are invisible.

    I did this with my Weebish Mines game here- http://dxfgames.com
    All the characters are actually moving around at the same time, but you'll only see one of them at any given time. Could be helpful to you.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,396
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Another easy way is just have the weapon drawn out like contra 3, I made a simple example
    http://community.clickteam.com/threads/92980-Platform-Game-running-and-shooting-example

  4. #4
    No Products Registered

    Join Date
    Aug 2014
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the tips Del_Duio, at first I wanted to handle the change of the animations using timers and flags but it's too complicated, so I created a group of conditions for every character. The groups are enabled only one at a time (the one corresponding to the character being used), in this way I can use conditions like 'Animation X is playing' etc. Now everything works perfectly. Still, I'll take a look at the examples posted by you and Sparckman, maybe there are other parts that can be improved.
    Thank you for the help!

Similar Threads

  1. Jumping and shooting help.
    By TourGuideNixon in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 24th December 2013, 04:49 AM
  2. Character flashes between falling and stopped animation when landing on platform.
    By TourGuideNixon in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 13th December 2013, 12:00 AM
  3. No collision when jumping/falling
    By rockesper in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th February 2012, 09:39 AM
  4. Jumping animation stopping after first frame
    By ac3raven in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd August 2011, 03:56 AM
  5. - quick question, jumping and shooting.
    By andrewe in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 24th September 2009, 06:44 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
  •