User Tag List

Results 1 to 4 of 4

Thread: Enemies with moving hitboxes

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Dec 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Enemies with moving hitboxes

    Hey guys,

    I am trying to figure out how to make an enemy that has a moving hit box. This enemy has a rolling animation and only has one opening that can be "damaged". I understand I should create a hitbox, but I am unsure how to sync it with the rolling animation.

    Thanks for any help.

  2. #2
    Clicker Fusion 2.5 Developer
    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)
    J3sseM's Avatar
    Join Date
    Feb 2013
    Location
    Finland
    Posts
    868
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    There are many ways to do that. You could make another active "hitbox" and always set it to action point of your enemy. You could use event where you check which frame of animation is playing etc.
    Experience, I'm sure you will find a way!

  3. #3
    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,112
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    I'd use an alterable value that is counting up.

    Always
    --- add 1 to "Value Roll".

    If value roll > 100
    --- set value roll to 0

    If bullet hits enemy +
    Value roll >50
    Value Roll <70
    --- Destroy Enemy

    The logic here states that if the "value roll" is between 50 and 70, the player can damage the enemy. I made an example for fun attached here! remember there's many different ways you could achieve the same thing, this one just seems very easy to understand.

    Hitbox.mfa

  4. #4
    Clicker Fusion 2.5 (Steam)

    Join Date
    Dec 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you guys for your help.

    J3sseM, I did not know you could tie something to the action point. Spot on!

    DaveC, that example is awesome. You made me realize that my 3rd enemy type can also use the same logic.

Similar Threads

  1. Enemies aren't moving right
    By Fralex in forum File Archive
    Replies: 0
    Last Post: 20th September 2010, 11:42 PM
  2. enemies
    By WareWolff in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th June 2010, 08:53 PM
  3. Problem w/ sprites overlaying hitboxes
    By Wyatt in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th April 2010, 03:08 AM
  4. thrown enemies not detecting other enemies
    By mobichan in forum File Archive
    Replies: 4
    Last Post: 8th April 2009, 06:40 PM
  5. enemies
    By spartan117 in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 7th February 2007, 09:05 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
  •