User Tag List

Results 1 to 7 of 7

Thread: Box2D - Rotating Door for Jacob

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Box2D - Rotating Door for Jacob

    In response to this thread:

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=195771&page=1

    This example has a rotating 'door'. Gravity has been set to 0 in the Box2D properties for a top-down game.
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Box2D - Rotating Door for Jacob

    This isn't exactly what I'm looking for. The game is a platformer, so gravity should affect the door, making it swing downwards. Also, the door needs to be movable, for example, always anchored at the mouse coordinates.

  3. #3
    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: Box2D - Rotating Door for Jacob

    Make a mouse joint...
    Working as fast as I can on Fusion 3

  4. #4
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Box2D - Rotating Door for Jacob

    That was an example. I do not want a mouse joint; I want a revolute joint at a dynamic set of coordinates.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Box2D - Rotating Door for Jacob

    You could at least say thanks for trying :P

    I made another example. I think it's more what you want. I used some code from the testbed.mfa. You'll need to tweak how much the door rotates and where it rotates using the centre of gravity and the positioning of the object itself relative to the square active.
    Attached files Attached files

  6. #6
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Box2D - Rotating Door for Jacob

    I apologise for my evident lack of recognition. I was quite in a rush to get numerous other tasks completed before the arrival of family members for this upcoming week in which I will be absent.

    On a lighter note, this final example, it works great and is precisely what I wanted. Thank you!

    PS: Thanks for trying...

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Box2D - Rotating Door for Jacob

    Haha no problem! I completely understand. I hope it helps Just ask if you need any more help.

Similar Threads

  1. Box2D rotating bat test problem
    By Bruto in forum File Archive
    Replies: 2
    Last Post: 7th December 2009, 07:02 PM
  2. Up Down Door
    By TwistidChimp in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 23rd April 2007, 01:12 PM
  3. opening door with key
    By will134 in forum The Games Factory 2 - Technical Support
    Replies: 7
    Last Post: 11th October 2006, 03:37 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
  •