User Tag List

Results 1 to 4 of 4

Thread: Working on a puzzle game, and need help.....

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    Working on a puzzle game, and need help.....

    I'm working on a small puzzle game. There are a number of blocks on the screen. The object is to tap, or click on the blocks until all of them on the screen disappear before they come back again. I was thinking probably the easiest way to handle this is to use trigger of all objects destroyed. But I am not destroying the objects. I am actually making them invisible until the trigger makes them visible again. When all the blocks have disappeared I want them to stop, and do the win screen.

    So what is the best way of handling this? Just go with all objects destroyed, and to make them appear use create object and assign their position to their original locations? Or is there a way I can do this without having to use create object? Because all the blocks are actually the same object, they're just multiple instances of it.

    I figure something to do with spreading values would help with this maybe?

  2. #2
    Clickteam Clickteam
    Simon's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,733
    Mentioned
    65 Post(s)
    Tagged
    3 Thread(s)
    When you make a block invisible, subtract 1 from a variable. When the block becomes visible again, add 1 to the variable. This way you'll keep a count of how many are visible or hidden easily and no need to destroy anything

    If you're finding it difficult to make this work, try putting the +/- bit in a behaviour for the block object... it will be much easier to handle in there.

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Simon View Post
    When you make a block invisible, subtract 1 from a variable. When the block becomes visible again, add 1 to the variable. This way you'll keep a count of how many are visible or hidden easily and no need to destroy anything

    If you're finding it difficult to make this work, try putting the +/- bit in a behaviour for the block object... it will be much easier to handle in there.
    I already am doing variables. But the thing is how would I count to see when all of the blocks variables have changed?

  4. #4
    Clickteam Clickteam
    Simon's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,733
    Mentioned
    65 Post(s)
    Tagged
    3 Thread(s)
    You could maintain a global variable and set it to the number of blocks created (before any are made invisible or whatever). Then when you subtract from the variable, it will go down from the number of blocks (which you could count at any time). When it is =0 all are invisible, when it =no of blocks, none are invisible.

    I'd recommend not storing the overall counter in objects' alterables as it will mean counting and adding them all up. A single global count is much more straightforward.

Similar Threads

  1. Keshigomu - Action Puzzle game
    By Shmuper in forum iOS Released Games & Apps
    Replies: 5
    Last Post: 20th May 2012, 06:33 AM
  2. Balancing a puzzle game
    By Xeeko in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th September 2011, 11:43 PM
  3. puzzle game
    By EasySite in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 25th July 2011, 07:14 AM
  4. how to make a window pop up for a game puzzle?
    By FUF in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 18th December 2008, 01:04 AM
  5. Where meeting one engine of GAME PUZZLE ???
    By Gmartns in forum File Archive
    Replies: 1
    Last Post: 7th April 2007, 12:03 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
  •