User Tag List

Results 1 to 3 of 3

Thread: Limiting 'Look in direction of' to 8 directions (or fewer)

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLC
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)

    Join Date
    Jul 2008
    Location
    The U of K.
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Limiting 'Look in direction of' to 8 directions (or fewer)

    Hi all,

    Is there a way to limit the 'look in direction' event to a number of directions? I'm associating the object Order with the direction (i.e. if the left direction animation is displaying, bring to front; if up direction is displaying, bring to back). I'm matching the direction value with a parent 'base' active and having that Always look at another object - but obviously there are 32 directional values involved in 'Always look in the direction of' which is messing up the effect somewhat.

    Is there a way to get the 'actual' direction of animation value that an object is currently displaying? That should be an effective solution. The Active Object I'm layering only has 8 directions of animation in there so if I could read the 'Direction displayed', perhaps, that would solve it.

    P.S. I've tried including all 32 directions 'Choose one or more directions' wheel but there's a conflict with the priority of layering on the direction values that exist between the true 8 directions 0,4,8, 12, 16, 20, 24, 28 and 32. If there is an animation image at direction 0, 4 and 8, then the 2 and 3 values makes the layering stutter, perhaps in a clash of priorities.

  2. #2
    Clicker Install 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)
    defisym's Avatar
    Join Date
    Jun 2017
    Location
    Asia
    Posts
    93
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I have just solved this a few days ago with a simple expression.
    Code:
    Code:
    ( ( ( Dir( "Character" ) mod 29 ) + 3 ) / 8 ) * 8
    My character has four “actual” directions, so I need to divide (32 / 4) = 8 and Mod (32 - 8 / 2) +1 = 29.
    The expression will normalize real direction to “actual” direction according to the follow rules:
    0:[29~31]、[0~4]
    8:[5 ~ 12]
    16:[13~20]
    24:[21~28]
    You can easily convert it to fit your project.
    DirNormalization.mfa

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLC
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)

    Join Date
    Jul 2008
    Location
    The U of K.
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Amazing. What great timing, thanks.

Similar Threads

  1. Replies: 5
    Last Post: 3rd September 2015, 12:59 AM
  2. limiting events
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 27th February 2010, 09:22 AM
  3. Advanced Dir Object - Limiting to 8 directions
    By Kid_Roleplay in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 31st December 2009, 07:41 AM
  4. Rotatetd directions messes up on 1 direction?
    By 00J in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th May 2009, 01:27 AM
  5. Limiting Jumps
    By dsilvers in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 3rd February 2009, 02:02 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
  •