User Tag List

Results 1 to 10 of 10

Thread: Bounce on enemies using built-in platform movement

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2010
    Location
    Italy
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Bounce on enemies using built-in platform movement

    Hi all!
    Is it possible to make the player bounce and kill an enemy if they jump on the enemy's head, while touching it normally makes the player lose a life?
    I want to use the built-in platform movement.
    Thank you in advanced for your answer!

  2. #2
    Clicker Fusion 2.5SWF Export Module
    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)

    Join Date
    Aug 2006
    Location
    Indiana, USA
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bounce on enemies using built-in platform movement

    One quick way to do it is to have an active object placed at each enemy, that is invisible and sticks up just above the enemy itself. (you'll need to experiment to find the height that works, as depending on how fast your character falls, it's different).

    Then you just check if the player hits one of those invisible detectors, and the detector is over an enemy, then destroy the enemy(and probably the detector too). You'll also want to set the player's direction and speed to simulate a "bounce" off the enemy's head.

    There's better ways of doing it, but if you're new to MMF2, this method is probably the easiest to setup.

  3. #3
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bounce on enemies using built-in platform movement

    It would be much easier to pull off using a custom movement engine or the platform movement extension since the former you can set a variable to accomplish and the latter has a jump feature in it.

    I would preferably use the platform movement extension if I wanted to integrate platform movement but put little work into it due to the control I could have over it and the ease of use.

  4. #4
    Clicker Multimedia Fusion 2
    Fralex's Avatar
    Join Date
    Sep 2008
    Location
    Melrose, MA
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bounce on enemies using built-in platform movement

    It's not as precise, but a detection method that has worked for me was to give the player a Falling animation, and defeat the enemies they collide with ONLY when that Falling animation is playing( be sure to have the animation loop). This can be done with the built-in platform movement.

  5. #5
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform 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)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: Bounce on enemies using built-in platform movement

    why not use the platform movevment extension????? you can make a solid movement in like 6 events, and it will be easier to add features like bouncing off enemies heads. why doesn't CT just scrap the default platform movement already...? it's nothing but trouble

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bounce on enemies using built-in platform movement

    Jeez guys its really not that hard.

    View MFA

    Either do that or give it a bouncing ball movement for a second movement and switch to that and back.

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2010
    Location
    Italy
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bounce on enemies using built-in platform movement

    Thank you all for your answers!

  8. #8
    No Products Registered

    Join Date
    Sep 2010
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bounce on enemies using built-in platform movement

    All of you are not doing it good.

    Player.Y_Position < (Enemy.Y_Position - 5)
    - Enemy.Destroy
    - Player.Movement_Bounce

    So simple.. This worked for me.

  9. #9
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bounce on enemies using built-in platform movement

    I agree with you, they should replace the built in platform movement with the platform movement extension.

  10. #10
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Apr 2008
    Location
    California
    Posts
    357
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bounce on enemies using built-in platform movement

    I agree with dcrew, but I have 1 editation.
    Player.[Y bottom_Position] < enemy.[Y top position] - (some variable)
    enemy-destroy
    player.movement_bounce
    A little more on the safe side-in case the y position of the hotspot isn't where it should be.

Similar Threads

  1. how to make a platform movement active to bounce off ceilings
    By devripper in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 4th April 2012, 06:36 PM
  2. Built in Platform Movement broken?
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th February 2012, 02:39 PM
  3. Built in Platform movement Enemies
    By Atherton in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 23rd March 2010, 12:33 PM
  4. MMF2 built in platform movement question
    By Triclyde in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 26th September 2009, 10:46 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
  •