User Tag List

Results 1 to 6 of 6

Thread: destroying enemies

  1. #1
    No Products Registered

    Join Date
    Apr 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    destroying enemies

    i am trying to create a sonic like game and can't seem to get my character to destroy enemies when it jumps on them, jump again when an enimy is destroyed, and lose life when the character is ran into by the enemy, any ideas?

  2. #2
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    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
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: destroying enemies

    What form of platform movement are you using? A custom movement, or the Platform Movement Object? It won't work with the default Platform movement.

    You're going to need to use an invisible detector at their feet, and use that for detecting the collision with the enemy when you hop on them. For bouncing on the enemy, just use the jump event you'd use with your movement, only have it occur when the detector collides with an enemy, as opposed to pressing the jump button. For multiple hits before the enemy is destroyed, just subtract from an alt value of the enemy each time you bounce on them, and when the alt value reaches zero, destroy the enemy.

    Since you're using a detector at the feet for testing collision when hopping on top of the enemy, you can just test for the player colliding with the enemy while the detector is not overlapping the enemy, then kill the player.

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: destroying enemies

    For a Sonic-like game a detector is not necessary. Sonic becomes a ball when he jumps, so you just say:
    animation 'ball' is playing + overlapping enemy -> destroy enemy
    In this case you need to change the animation to 'ball' [or call it whatever you like] when your character jumps.

    As for the jumping up again, as Shawn said, that depends on the kind of movement you are using.

  4. #4
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    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
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: destroying enemies

    Ah yeah you're correct raven. A simple test for the ball animation is all you'd need. Not sure why I didn't think of that, considering I've played Sonic quite a bit back in the day lol.

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: destroying enemies

    You still need to do additional checks or use a detector, since the ball should only hurt an enemy from above. If you just check for the "ball" animation to overlap, then the player can hurt enemies from below.

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: destroying enemies

    That is true in sonic games though.

Similar Threads

  1. Destroying actives
    By macca02 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th February 2013, 10:38 AM
  2. thrown enemies not detecting other enemies
    By mobichan in forum File Archive
    Replies: 4
    Last Post: 8th April 2009, 06:40 PM
  3. One last problem, with destroying
    By csj1 in forum File Archive
    Replies: 2
    Last Post: 5th April 2009, 02:54 PM
  4. Destroying
    By pikzilla in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th March 2009, 09:41 PM

Posting Permissions

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