User Tag List

Results 1 to 2 of 2

Thread: Phizix - Loop through bodies?

  1. #1
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Phizix - Loop through bodies?

    Another Phizix question from me... just wait, when Box2D comes out, this board gonna get swamped

    Joking. Anyway.

    How would I go about looping through bodies? It's easy enough with actives, just Spread an ID through them all then run a fastloop. But I can't figure out how you're supposed to replicate this with Phizix bodies, since there doesn't seem to be any way to pick a body in the same way (the only offerings being Last Added Body and by Fixed ID of an Active, the latter of which, iirc, in my last Phizix thread I discovered didn't seem to work properly).
    I have a lot of instances of an active on the frame, each of which is attached to a body, and need to reposition them all using a loop, but as Phizix specifically asks for the Body ID you are modifying, I don't know how to properly fill this field.

    Oh yeah, I wonder if anyone has seen these various threads and thinks I'm working on some super-complex and horribly overdone game... nope, just a ton of files in My Documents, mostly informatively named "Application," "testing stuff," "test," "stuff," "asdfg" and etc. Making stuff for no reason that never really goes anywhere is fun :grin:
    ...And it normally takes about 10 minutes of trawling to find the file I actually want to work on x)

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Phizix - Loop through bodies?

    You could store the IDs of your bodies in a list, array, string, database... just remember to remove them when destroyed. If you don't destroy any body, I guess it's even easier (start the loop LastAddedBodyId times) and get the body at Id = loopindex+1

Similar Threads

  1. Replies: 7
    Last Post: 25th December 2012, 11:26 AM
  2. Phizix for Iphone (box2d and phizix)
    By iamjot in forum Extension Development
    Replies: 8
    Last Post: 6th May 2011, 08:41 AM
  3. fast loop and loop index
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th May 2010, 01:43 AM
  4. Start loop "loop" 'Alterable Value A' times
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th May 2009, 07:26 AM
  5. Phizix Object- Dragging bodies?
    By xhedgehogx in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 19th September 2008, 12:04 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
  •