User Tag List

Results 1 to 2 of 2

Thread: Destroy Multiple Instances Between Frames?

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Feb 2016
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Destroy Multiple Instances Between Frames?

    Hey,
    I'm working on an RPG where I have multiple instances of enemies that drop loot, then destroy the enemy. The issue I'm having is that I can't keep the enemy destroyed between frames. I've tried global values, but that just destroys all the enemies. I just need that one instance of the enemy to be permanently destroyed between frames, without getting rid of the other instances.
    Does anyone know how to do this?
    Thanks,
    TooTinyMan

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Feb 2014
    Posts
    948
    Mentioned
    15 Post(s)
    Tagged
    1 Thread(s)
    u cud try giving each ememy a unique alterable value id number wen u create them & then creating an array that stores which enemies have been destroyed.

    fore example

    create an array (x,y,z), where x dimension is the number of enemies u want, y & z dimensions are both 1

    so say in this example we want 4 enemies, so u set the array to (4,1,1,) (also remember to tick on base index 1 in the array properties so the first array slot wud be 1,1,1 instead of 0,0,0 )

    walk onto screen

    if array (1,1,1)=0 then create enemy - set its alterable value "enemy_id" to 1
    if array (2,1,1)=0 then create enemy - set its alterable value "enemy_id" to 2
    if array (3,1,1)=0 then create enemy - set its alterable value "enemy_id" to 3
    if array (4,1,1)=0 then create enemy - set its alterable value "enemy_id" to 4

    u kill enemies 2 & 4 in game

    wen u kill an enemy set the array ("enemy_id",1,1) to 1, thats set to 1 which means that one is dead

    walk on another screen

    wen u walk back on to the previous screen the create enemy event lines 2 & 4 will be ignored cause that enemies array value is 1 so it will just create enemies 1 & 3

    that shud work in theory . good luck dude

Similar Threads

  1. Multiple Instances Help
    By macca02 in forum Fusion 2.5
    Replies: 2
    Last Post: 23rd February 2014, 11:05 PM
  2. Few frames vs Multiple frames - game help needed
    By Marllux in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 4th September 2013, 04:13 PM
  3. multiple instances spawning at multiple places
    By CPW in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 22nd February 2009, 12:38 AM
  4. Importing multiple animations as multiple frames
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th November 2008, 09:36 PM
  5. Multiple instances of app.
    By Bruto in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 16th April 2008, 04:03 AM

Tags for this Thread

Posting Permissions

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