User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 15 of 15

Thread: Destroy object on collision - Box2d

  1. #11
    Clicker Multimedia Fusion 2 DeveloperAndroid Export Module

    Join Date
    May 2010
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I opened the testbed.mfa and edited the Bullets frame to destroy the blue bullet when it hit a particular shape. It worked. But it didn't work when I set it to collide with a group.

    So in my own file, I set to be destroyed when it collides with a specific green shape (the big one at the top). This didn't work.

  2. #12
    Clicker Multimedia Fusion 2 DeveloperAndroid Export Module

    Join Date
    May 2010
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay. I think I fixed it. My sprite was too small, and so I think the Box2d body was colliding with the green walls and stopping the actual apple sprite from colliding. I made my apple bigger and it is instantly destroyed every time now. So I guess it's good practice to make your bodies slightly smaller than the sprites they belong to.

  3. #13
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Well, that's good that you found out what the issue was. BTW, nice game so far. Can I ask what the game is about,.I really don't get what you need to do in it to win or whatever?

  4. #14
    Clicker Multimedia Fusion 2 DeveloperAndroid Export Module

    Join Date
    May 2010
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, the game is going to be a puzzle-platformer. Each level is based on one of the virtues in this essay:

    http://yudkowsky.net/rational/virtues

    The level I linked to in the thread is "Precision". There's no win-state yet because the level is not done. We plan to get the game done and released by December.

  5. #15
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Sounds good, keep us posted.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Box2D "Disable Collision Types" not working?
    By gastrop0d in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd December 2011, 12:32 AM
  2. Help with Destroy Object
    By lucaoo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 7th September 2011, 03:49 AM
  3. Destroy Object..
    By MostDreaded in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 14th January 2011, 05:18 AM
  4. Play animation on collision. Destroy animation
    By Maarten in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 30th November 2010, 11:38 PM
  5. Destroy any object when there is a collision?
    By mdlm in forum The Games Factory 2 - Technical Support
    Replies: 7
    Last Post: 16th June 2010, 11: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
  •