User Tag List

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

Thread: Alterable values....

  1. #11
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable values....

    I see what you mean.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  2. #12
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable values....

    Gibbon, I'm sorry, I don't want to be mean, I hope you accept my apologize.

    For your problem: I was thinking about it the last 20 minutes and I don't have a solution yet but I have an idea.

    What about range comparison. You could get the distance between object with ID4 and ID8.

    I suggest you use global values. Xof4/Yof4 and Xof8/Yof8

    ID of active = 4
    -->
    set Xof4 = x(object)
    set Yof4 = Y(object)

    same for ID8.

    Now you have 4 numbers and can get the distance between those two objects

    Sqr( ((>X Point 1<->X Point 2<) Pow 2)+((>Y Point 1<->Y Point 2<) Pow 2) )

    Now you just need to define the events that are triggered if the distance is under or over a certain value.

    This is just an idea you could try.

  3. #13
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable values....

    Gibbon, I'm sorry, I don't want to be mean, I hope you accept my apologize.
    Hi MaVado, no need to apologise, it "sounds" such an easy thing to do, but for some reason isnt! lol.

    Now to you idea, its a good one, and the only one i have thought of to that would work... sort of!

    What i mean is, it will work, but it will only work for that actualy X&Y you state, so am i correct in thinking that the collision will only be triggered when the two X&Y (1 pixel size) collide? and not the actual object?

    Thanks
    Andy

  4. #14
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable values....

    Well this is not a collision thing. It's a range comparison.

    If distance from object4 to object8 is lower or equal 32 (insert your distance here) then trigger the events for colision.

    You "fake" the collision by value comparison. Finding the right distance may take some time.

  5. #15
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable values....

    Hmm, ill have a look into that then. Sounds like it could work.

    thanks
    Andy

  6. #16
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable values....

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=143307#Post1433 07

    I changed the example by CodeCannon for you.

  7. #17
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable values....

    Spot on, works a treat!

    Cheers
    Andy

  8. #18
    No Products Registered

    Join Date
    May 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable values....

    very cool and exciting website!'
    ______________________________________________
    where the red fern grows
    bsn nutrition

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Global Values & Alterable Values with same names
    By Gustav in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 7th November 2012, 06:15 PM
  2. Alterable Strings as Alterable Values?
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 27th March 2012, 07:14 PM
  3. Display values on screen from Alterable Values
    By mikeh in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 13th May 2008, 01:59 PM
  4. Alterable Strings and Alterable Values limit :(
    By Pedro Almeida in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th October 2006, 06:38 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
  •