User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Change object direction with a click HOW?

  1. #1
    Clicker 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
    Feb 2007
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Change object direction with a click HOW?

    Hey people.

    I'm stuck on this one. It should be really simple.

    I'm wanting to change the direction of the active object when I click on it.

    I want it to change the direction by changing the variable and the direction being taken from that. (I have plans to do things with that later on)

    What it does is...

    Start Frame - Set active to random direction
    - Set Alterable Value A to active objects direction value


    On Mouse Click over Active Object - Add 1 to Alterable Value A
    - Set direction to Alterable Value A

    I can't seem to get it working at all.

    Can anyone help?

    Maybe looking at the file will help?
    Change direction via mouse click

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Change object direction with a click HOW?

    What's your problem? Changing the ddirection using a variable?
    For that, click on the "Expression" button in the direction dialogue. I'm not sure about its exact name, and I can't access MMF right now. It should be in the bottom right corner of the window.

  3. #3
    Clicker Fusion 2.5 DeveloperHTML5 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
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Change object direction with a click HOW?

    You'll have to use the expression editor and retrieve alt value a for the direction in the expression editor. Remember though, the direction values are 0 - 31.

    Edit - Looking at your file, you are using the "appearing" animation to change direction. The built in animations are triggered by special events, that one for when the object appears. Try setting the movements in a new custom movement.

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Change object direction with a click HOW?

    Oh, I didn't see that link. :blush:

  5. #5
    Clicker 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
    Feb 2007
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Change object direction with a click HOW?

    Ok. I tried my own animation, didn't work.
    It was made more difficult by the Neutral group assigned to the active objects not having the new animation selectable.

    So I had to change to code over to use the active object alone, and not the groups.

    Anyway, It still doesn't work.
    I can tell the Alterable Value A is increasing because I've done a test with multiple active objects, and I made it display the Alterable Value of the clicked object in the counter.
    I can click on an object to increase it's value, go off and click other objects and come back to it, and it will show in the counter it has remembered the value assigned to it.

    So the problem appears to be that I cannot get the direction to update from the variable.

    Any ideas?
    Has anyone got an example of it working, that I could look at?

  6. #6
    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: Change object direction with a click HOW?

    Instead of pulling your hair out, could you use custom arrow key icons, or keys to do this. I know this is not in line with what you want to do, but it is better than gagging and choking.

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

  7. #7
    No Products Registered

    Join Date
    Mar 2009
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Change object direction with a click HOW?

    http://www.easy-share.com/1904912321/Change_direction_click2.mfa

  8. #8
    Clicker 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
    Feb 2007
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Change object direction with a click HOW?

    Okay.

    Thanks for your help. But....
    I've gone and copied what you have done exactly (to my knowledge) I cannot see a single difference.

    And it just doesn't work.
    I've altered the object I had done to match the code parts etc,
    just doesn't work. And I can't see why not.

    Can anyone see what "Active" is doing differently from "Active 2" ?

    http://www.easy-share.com/1904935194/Change_direction_click5.mfa

  9. #9
    No Products Registered

    Join Date
    Mar 2009
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Change object direction with a click HOW?

    I don't know what you're trying to achieve with this "Face Value" thing.

  10. #10
    Clicker Fusion 2.5 DeveloperHTML5 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
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Change object direction with a click HOW?

    I fixed it. Just change the arrow animation to the stopped animation. Unless you have a need for it to not play the arrow animation all the time, but here is my edit:

    http://www.mediafire.com/file/ygq1lj...ck_example.mfa

    All I really did is get rid of the appearing animation, and just made that the stopped animation instead.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Action on direction change
    By isoetes in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th April 2013, 07:36 PM
  2. Does not change direction when animation stopped
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 3rd April 2013, 08:43 PM
  3. Possible bug in animation loop & direction change?
    By N64Mario in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 17th October 2011, 01:57 PM
  4. Change Direction of Vector Movement
    By Mantoid in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th January 2009, 01:44 AM
  5. Change x Direction
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 4th January 2007, 10:22 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
  •