User Tag List

Results 1 to 7 of 7

Thread: Retrive ID in phizX

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Retrive ID in phizX

    I've got two different physic objects. Box and Circle. Both of them have plenty of instances.

    Now I want to try to do a bunch of stuff with individual physic objects. One option is "Get body ID from active", this can only be done through the expression editor, and I have no idea how to select an active from the expression editor.

    Whats the easiest way to retrieve body ID in the physx object?

  2. #2
    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: Retrive ID in phizX

    ActiveBodyID( "Phizix - Chipmunk Engine", Fixed( "Object Name" ))

    That is the easiest way. Also make sure you use object selection in the conditions to select one object. If you still have more than one object selected at a time, use "Pick random object" from pick or count.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Retrive ID in phizX

    I've set value B to all of the box objects to it's angle. I've debugged it, and all of the individual box objects show the correct value B related to its angle.

    I've made this code
    0 Box overlapping obstacle
    + Alterable value B of "box" <-5
    + Alterable value B of "box" > 5

    =

    Set angle
    Body ID
    (ActiveBodyID( "Phizix - Chipmunk Engine", Fixed( "Box" )))
    Angle
    ActiveBodyID( "Phizix - Chipmunk Engine", Fixed( "Box" ))+4

    I want the box to stand upright at 0 degrees when they are overlapping an obstacle. This doesn't work. Nothing happens when the box objects overlaps the obstacle. I've even shrunken the collision field by 1px width and height. So the active is defiantly overlapping obstacles.

  4. #4
    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: Retrive ID in phizX

    Uload your MFA with the problem only, then, I can't get enough information from your post, sorry.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Retrive ID in phizX

    I never find the upload thingie on this forum.

    I've sent you a mail to "LB@LB-Stuff.com" (37kb). The problem is marked in red in the event list.

  6. #6
    Clickteam Clickteam
    Kisguri's Avatar
    Join Date
    Jun 2006
    Location
    Bakersfield, CA
    Posts
    3,058
    Mentioned
    39 Post(s)
    Tagged
    3 Thread(s)

    Re: Retrive ID in phizX

    _LB i have attached Willy's file to the following thread...

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=148730#Post1487 30


    Clickteam on Twitter - Clickteam on Facebook

  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: Retrive ID in phizX

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=148750&#Post148 750

    Fixed it, your welcome
    Working as fast as I can on Fusion 3

Similar Threads

  1. ODBC: Retrive a floating value
    By Lemon_Blizzard in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th February 2011, 08:48 PM
  2. How to retrive an SQL table with ODBC object?
    By Locaz00 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 11th March 2009, 11:43 AM
  3. Retrive Keyboard and Gamepad keys
    By Simon_Belmont in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 19th September 2008, 08:52 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
  •