User Tag List

Results 1 to 2 of 2

Thread: Double-Hit Object - Using Chocobreak as example

  1. #1
    No Products Registered

    Join Date
    Sep 2007
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Double-Hit Object - Using Chocobreak as example

    Hello again!

    A student today asked me how to create a block in Chocobreak that would be destroyed after hits. Using a " Create Object " command, I tried to have it create a second brick behind the first one so that it would bounce one and then destroy the " second " brick. This tactic worked with different colored bricks, but for some reason, when I use the same brick, such as Milk and Milk2, it still destroys both.

    Any suggestions you could make would be greatly appreciated.

    -Vandas

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Double-Hit Object - Using Chocobreak as example

    Hi Vandas -

    You can use counters that are stored as part of each object, called "Alterable Values", to do this.

    Click on the "A...Z" values tab in the Properties pane of your object, click "Add" and name the value something like "Hits", to keep track of what you're using it for by double clicking on the name "Alterable Value A". You can give it an initial value, as well - these changes apply to all objects of the type that you have selected.

    Then, in the Event editor, instead of destroying a brick when the ball bounces off it, you can use the "Change an alterable value" action to subtract 1 from Hits when the brick is hit. Then, you would need a separate event to destroy the brick if its alterable value has reached 0 or below (use "less than or equal to", because two simultaneous hits may drop the counter below -1. I don't think this applies to a Breakout game with one ball, but it's a good habit to get into for when you need it.)

Similar Threads

  1. Chocobreak Tutorial
    By NoobGamerMaker33 in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 11th June 2009, 05:10 PM
  2. double jump with a platform object
    By rhoymand in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 17th June 2008, 01:22 AM
  3. Double Precision Object
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th January 2008, 11:46 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
  •