User Tag List

Results 1 to 2 of 2

Thread: when shot, all the enemies die instead of just the one?

  1. #1
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)

    Join Date
    Nov 2018
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation when shot, all the enemies die instead of just the one?

    Ok so when i load up my game what happens is when i shoot an enemy, all of the copies die.
    What i did was (so that the enemies have health) make a global value for Enemy 1 that can only be changed by enemy 1 being shot, like this

    Collision with (Bullet) And (Enemy 1)=
    Add 1 to Global value 1 (Enemy 1's Health)+ Destroy Bullet

    Then what i did was made it if its shot twice it would die and reset its health after death for the next copy.

    Enemy 1 Health is bigger than 2=
    Set Global Value 1 to 0 + Create Explosion + add 50 to score + destroy Enemy 1

    After i shoot them they all die but not only that, the next wave of the same enemies have no health at all and never die
    I would love for someone to help me out as its pretty game breaking

    Thanks, John

  2. #2
    Clicker Fusion 2.5Fusion 2.5 Mac
    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)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    781
    Mentioned
    17 Post(s)
    Tagged
    0 Thread(s)
    You can't use global values for that since there's no way of seperating the object. Use the enemies alterable values since they are unique to each created object.

    Bullet collides with enemy
    ->add 1 to alt value a

    Enemy alt value is equal or greater to 2
    ->destroy enemy.

Similar Threads

  1. How to make enemies drop items when shot
    By Bittergamer1886 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 2nd May 2012, 05:43 PM
  2. thrown enemies not detecting other enemies
    By mobichan in forum File Archive
    Replies: 4
    Last Post: 8th April 2009, 06:40 PM
  3. 3 shot limit?
    By Zambaku in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 15th March 2009, 04:39 PM
  4. Charge shot
    By bunnyonion in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 28th October 2008, 10:53 AM
  5. Timed shot
    By Nickydude in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 3rd April 2007, 07:09 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
  •