User Tag List

Results 1 to 7 of 7

Thread: Counting the number of invisible objects?

  1. #1
    Clicker Multimedia Fusion 2
    BrandonC's Avatar
    Join Date
    Jun 2006
    Location
    PA, USA
    Posts
    931
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Counting the number of invisible objects?

    Recently decided to re-make my game engine to not destroy objects, but make them invisible, that way you could bring them back if you die and return to a check point.
    I recently discovered though, that a large portion of the game relies heavily on the "Last(Active)has been destroyed" condition, and was wondering if there was a simple work around for this, so I can detect how many of a particular object, ae left visable and vice versa. Any ideas? [crazy]

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jun 2006
    Location
    Melbourne, Australia
    Posts
    765
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Counting the number of invisible objects?

    You can use a qualifier and add all the visible objects to the group or you can simply get a count of all the objects on the screen and subtract those that are not visible. Generally you don't create more invisible objects.

  3. #3
    Clicker Multimedia Fusion 2 Developer

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

    Re: Counting the number of invisible objects?

    If all the objects are of the same type you can use the select object (it doesn't support qualifiers, sorry), like this:

    [events]
    *"Active" is invisible
    +"Select Object" compare to number of "Active"s selected, equals number of "Active"s.
    - All are hidden.
    [/events]

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Counting the number of invisible objects?

    How the heck do you do that event list view thing? Oh by the way... You can just recreate the objects. Just do destroy all enemies when you die. Then recreate them when you start all over...

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Counting the number of invisible objects?

    If an object is invisible, it can still kill you... You will have to have it so when you do kill the enemy... It becomes invisible and its position is set to off the screen or whatever... Maybe you can have a prison box in the sky or something. You then need to have it so that when your counter or lives equals 0, then it sets all of their positions back to where they started and you have to make sure their animations and movements are restored. You probably should just kill the guys and create the enemies back (in there previous positions) when you die.

  6. #6
    No Products Registered

    Join Date
    Jul 2006
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Counting the number of invisible objects?


  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Counting the number of invisible objects?

    Or you could just use flags + loops..?

Similar Threads

  1. DataGrid Object and Number Counting
    By Kazuryo in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 24th May 2013, 09:32 AM
  2. Counting number of objects and FPS
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 13th October 2012, 07:13 AM
  3. Counting Number of Objects Overlapping Another Object?
    By Verbage in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 28th April 2012, 09:16 PM
  4. Number Fiesta, new iOS counting game
    By 1234cb in forum iOS Released Games & Apps
    Replies: 1
    Last Post: 3rd January 2012, 04:53 PM
  5. Counting exact number of collisions
    By Sarah in forum File Archive
    Replies: 0
    Last Post: 13th July 2007, 07:49 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
  •