User Tag List

Results 1 to 7 of 7

Thread: Suggestion: If object close to another object X pixels

  1. #1
    Clicker Fusion 2.5SWF Export Module
    Fusion 2.5 (Steam)
    NastyMan's Avatar
    Join Date
    Aug 2010
    Posts
    16
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb Suggestion: If object close to another object X pixels

    If Clickteam Fusion 2.5 doesn't have this feature to check that if Active is close to another object by X pixels then action, you can include it in the new Clickteam Fusion for the users!

    It will get turrets for example to shoot only if an object is close enough to their range! Please consider adding this feature to it even now!

    For example:

    -Distance of Soldier1 is close by X or less to Turrent -> Shoot bullet
    -Distance of Light3 is close by X pixels more to Battery1 -> Make light3 transparency ink effect value to 32
    -Distance of alien is close by X pixels to Detector -> Play sound Alarm.

    I hope that CF2.5 already has such feature because if not, then clickteam must add it under "distance to another object"!

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    CF2.5 specifically had this added... You can find it in the Special Conditions. You can get distance and angle.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2007
    Location
    UK
    Posts
    303
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Konidias, I didn't know the above had been added. Had a quick look but can't get it to work. Asking because I usually stretch an active from the player sprite to the enemy instance to get the distance. This may save me that hassle.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,512
    Mentioned
    3 Post(s)
    Tagged
    1 Thread(s)
    What build of Fusion 2.5 are you using?

    I've not had any problem with it, but perhaps you are doing it so it only checks against the first soldier / turret. Are you using a "For Each Object" / "For Each of Two Objects" loop to test each object? This feature is listed under an object, under "Count", and runs a fastloop per object(s).

    Ensure you are entering the right inputs, e.g. Distance(X( "Active" ),Y( "Active" ),X( "Active 2" ),Y( "Active 2" ))
    .:::.Joshtek.:::.

  5. #5
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleMac Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The angle and distance functions are great but it would actually be a good idea to have an event condition to test for this. ie: If "Object A is within 'n' pixels of Object B" just like the "Object is getting closer than 'n' pixels from window's edge" under the position conditions. Would mean no need to construct foreach tests on all objects in events, Fusion would be able to filter more efficiently.

    Nice one NastyMan, anything to make things easier to do is surely a good idea - have added it to the bug box as a feature request.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2007
    Location
    UK
    Posts
    303
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Joshtek, thanks. It was me doing it wrong. Sorted.

    AndyH, yes, Nastyman's idea would be easier. Something else that could prove useful: a "Line of sight is clear" condition that highlights when "Object A is within 'n' pixels of Object B" is being used. Or they could use a similar format to Distance: Line of sight (X( "Active" ),Y( "Active" ),X( "Active 2" ),Y( "Active 2" )) is clear. Maybe it could be implemented so you don't have to mess about scaling actives and checking for overlaps with background/active obstacles.

  7. #7
    No Products Registered

    Join Date
    Aug 2016
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No idea how i need help too!

Similar Threads

  1. Suggestion - iOS Object
    By Kisguri in forum iOS Export Module Version 2.0
    Replies: 7
    Last Post: 28th May 2011, 12:44 AM
  2. Change 'Height' or 'Width' of object in pixels
    By Digitalic in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 19th June 2010, 05:50 AM
  3. [Request] Active Object scaling by PIXELS
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th December 2007, 05:45 PM
  4. Disabling close for MDI windows with Kernel object
    By Mantis in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 8th May 2007, 11:06 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
  •