User Tag List

Results 1 to 9 of 9

Thread: Object changes once hit problem

  1. #1
    Clicker Fusion 2.5

    Join Date
    Jul 2006
    Location
    Illinois. USA
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Object changes once hit problem

    I have 7 different colored bricks spread out through my game for my break out type game. I want when each brick is hit it is destroyed and a second image appears with a crack in it and once hit again an animation plays and that one brick is destroyed completely. I tried this and when I do hit a brick ALL of that same color is affected. I want each individual brick to be affected only when hit. I checked some tutorials but with the different colored bricks. I was wondering how do you accomplish task?
    What do I add in my conditions and what do I check?

    Thanks

  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: Object changes once hit problem

    What condition are you using to check if the brick has been hit? Depending on how you're doing it, some conditions will select all brick objects, and some will affect only the brick mentioned in the event. "Collision between ball and brick -> Change animation of "brick"" should work...

  3. #3
    Clicker Fusion 2.5

    Join Date
    Jul 2006
    Location
    Illinois. USA
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Object changes once hit problem

    in condition i have when ball collides with brick and then under the ball object I checked bounce. But I have tried hiding the cracked bricks and the animated bricks and when the first brick is hit everything goes crazy.
    I have looked at the lab tutorial and I dont see how they can get the 2nd brick to change without having an image. Plus when the 2nd time it hits you see an animated effect. I even tried various options in the conditions and no luck neither. When I hit even one of the colored bricks all those bricks of that color are affected. Should be just one brick itself at a time.

    Thanks DavidN I will try the change animation way. I know these are all noob questions lol

  4. #4
    Clicker SWF Export Module

    Join Date
    May 2010
    Location
    Tennessee, USA
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Object changes once hit problem

    Here's another way to tackle it:

    have hit with flag 1 on --- generate cracked brick

    hit with flag 2 on --- destroy brick

    if you duplicate a brick to make your bricks, all bricks are affected by the hit

    however if you clone bricks, the bricks are separate objects

    each has advantages and disadvantages... I feel your pain.

  5. #5
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Object changes once hit problem

    You are wrong. Duplicated obejcts can be independant if you are smart and code them correctly.
    Working as fast as I can on Fusion 3

  6. #6
    Clicker Fusion 2.5

    Join Date
    Jul 2006
    Location
    Illinois. USA
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Object changes once hit problem

    Well this is what I did and it works fine for me. For each colored brick I put in the condition
    1. Collision between ball and blue brick - create cracked brick from (relative to) blue brick - add 10 to score - destroy blue brick/set direction to <-- - Ball bounce

    2. Collision between ball and cracked brick - create ANIbrick from (relative to) cracked brick - add 10 to score - Ball Bounce - Destroy cracked brick/set direction to <--

    I did that to all of them like that and I played it back and it works perfect! I was going to try DavidN's way when I stumbled on this way and figured try it before I tried his way. It worked!

    Thanks again you guys.

  7. #7
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Object changes once hit problem

    Isn't that a whole lot more tedious and more events than just having multiple animations?
    Working as fast as I can on Fusion 3

  8. #8
    Clicker Fusion 2.5

    Join Date
    Jul 2006
    Location
    Illinois. USA
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Object changes once hit problem

    Its the only way I know how lol. I do write down in my notes that I have learned in this program and one on word. So this way I can go back and reference on how to do it or different ways to do one thing.

  9. #9
    Clicker Fusion 2.5

    Join Date
    Jul 2006
    Location
    Illinois. USA
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Object changes once hit problem

    All this works now accept when the last brick is hit that it goes to the next frame (level 3). It works fine on the first level because it is just when you hit the brick it destroys it and I got it to where it says in conditions... Number of bricks =0(for each colored brick on the same condition line). Then I checked Next frame and it works fine.

    When I tried this with 2nd level it does not work. I think because I have a lot more going on with the bricks apposed to the first level. Once you hit the bricks first time the brick is destroyed, but then a new object takes it placed as a cracked brick. When you hit the cracked bricks it plays an animation once as if the brick is shattering into thin air. I am sure its pretty much like what I did with the first level I am guessing, but just can't seem to get it to actually go to the next frame.

    I tried to do the same as above in the condition, but instead I changed it to the cracked brick =0 that didnt work, so I tried the animation bricks = 0 go to next frame. That didnt work neither. I tried has all animation finished? next frame... and THAT didnt work neither. I tried all objects in a zone and next frame and that just ends the frame before it even gets started. Then I tried one other way and that didn't work. I ran out of ideas.

    Can someone help me with this please? Thanks ahead of time.

Similar Threads

  1. Object order problem with multiple instances of the same object
    By tom79 in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 1st November 2011, 06:38 PM
  2. Problem with object IDs
    By Wra1thus in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 7th January 2011, 12:53 AM
  3. Problem with the Get Object
    By SpineRaptor in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 12th July 2010, 11:27 PM
  4. Zip Object problem
    By Flo in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 4th April 2009, 10:34 PM
  5. Problem with INI object??
    By AtomX in forum File Archive
    Replies: 1
    Last Post: 21st January 2007, 09:41 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
  •