User Tag List

Results 1 to 4 of 4

Thread: How to destroy an enemy

  1. #1
    Clicker Fusion 2.5SWF Export Module
    videogiochi's Avatar
    Join Date
    Jun 2010
    Location
    italy
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to destroy an enemy

    Hi all.
    In my new game I want to destroy an enemy.
    The enemy must be killed after 5 shots, for example.
    I thought about using a counter for every enemy, but if I have 30 enemies in a level I should use one counter for each enemy.
    Then I thought about creating different animations for each enemy, for example, if the enemy is hit in the first animation , pass to second animation, and so until fifth animation.
    But this does not work because when I hit the enemy while animation 1 is running, recognizing the collision the program goes directly to fifth animation and the enemy dies at the first shot.
    I hope to have explained well with my moot english.
    Thanks.
    Alex

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid 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)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,352
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    This is what alterable values are for. In the frame editor, you can set the default values for the alterable values for each object type. In the event editor you can subtract 1 from Alterable Value A of Enemy when he gets shot. Then have an event that destroys the enemy when Alterable Value A <= 0.

    You can also rename the alterable values in the frame editor. So you could rename Alterable Value A to Health for instance.

  3. #3
    Clicker Fusion 2.5SWF Export Module
    videogiochi's Avatar
    Join Date
    Jun 2010
    Location
    italy
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks.
    Now I'm going to try it....
    Wait for response!
    Alex

  4. #4
    Clicker Fusion 2.5SWF Export Module
    videogiochi's Avatar
    Join Date
    Jun 2010
    Location
    italy
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great, it works fine.
    You taught me a new thing, thank you very much!
    Alex

Similar Threads

  1. Only added score of single enemy when destroy multiple enemies at a time.
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 11th April 2012, 12:26 PM
  2. Strange thing: If Enemy Alterable Value A = Enemy Alterable Value B
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 26th March 2012, 06:29 PM
  3. How do I destroy an enemy after a delay
    By Keith in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 15th February 2012, 01:53 PM
  4. Destroy Enemy with Feet?
    By Drew_Brightwell in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 15th April 2011, 05:55 AM
  5. Enemy 'destroy' issues
    By K12Student in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 15th May 2010, 01:40 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
  •