User Tag List

Results 1 to 2 of 2

Thread: Advanced test

  1. #1
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Advanced test

    Hello,
    I need some help because I don't know how to do that :
    + Collision between OBJX and OBJX
    - OBJX 1 : Alterable value A = 1
    - OBJX 2 : Alterable value A = 2
    > OBJX 1 : Destroy
    > OBJX 2 : Bounce

    The syntax is false, of course. But I can't find a way to do that... Is somebody know how to do that ?
    Thanks.

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced test

    I assume your + and - are conditions, and > are actions? Then don't you want:
    + Collision between OBJX and OBJX
    - OBJX: Alterable value A = 2
    > OBJX: Bounce

    + Collision between OBJX and OBJX
    - OBJX: Alterable value A = 1
    > OBJX: Destroy

    They _should_ both run I think.

    If you really do need to identify both objects in a collision the only way is to use a "proxy" object. Basically you loop through all instances of OBJX and set the proxy to it, and turn the flag 0 of OBJX on. In the same loop you then test for collision between OBJX and the proxy, with the extra condition that flag 0 must be off (to stop the proxy colliding with the object you've positioned it over). Do whatever you want, and then at the end of the loop turn flag 0 off again. Like this:

    *Always
    -Spread value 0 in "OBJX"

    *Always
    -Start loop "collision" for count("OBJX") times

    *On loop "collision"
    +Alt Value of "OBJX" == loop index
    -Set "proxy" to location of "OBJX"
    -Set flag 0 of "OBJX" on

    *On loop "collision"
    +"OBJX" is overlapping "proxy"
    +flag 0 of "OBJX" is off
    -Do whatever to "OBJX" // this is the other "OBJX"(s) from the collision
    -Set flags in "proxy" to say what to do to the other "OBJX"

    *On loop "collision"
    +flag 0 of "OBJX" is on
    +flag whatever is set in "proxy"
    -Do whatever to "OBJX" // this is the first "OBJX" from the collision
    -clear flag in "proxy"

    *On loop "collision"
    -Set flag 0 of "OBJX" off

Similar Threads

  1. Admob ads "test 1 mydomain.com" "test 2 test 3" ?
    By Outcast in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 13th November 2013, 07:48 PM
  2. A Few Advanced Questions...
    By XStar in forum Multimedia Fusion 2 - Technical Support
    Replies: 21
    Last Post: 23rd April 2012, 05:23 PM
  3. TTS advanced request
    By cel in forum Extension Development
    Replies: 9
    Last Post: 2nd April 2008, 06:07 PM
  4. TTS Advanced
    By z33z in forum Released Extensions
    Replies: 1
    Last Post: 30th January 2008, 01:31 PM
  5. Is this possible with advanced gameboard?
    By wargasmic in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 20th December 2006, 05:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •