User Tag List

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

Thread: Rotate on click?

  1. #1
    No Products Registered

    Join Date
    Jul 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Rotate on click?

    I want to rotate an active object 90° to the right when it is clicked with the left mouse button OR have the image replaced with another image when clicked. Can this be done in MMF2?

  2. #2
    No Products Registered

    Join Date
    Jan 2007
    Location
    NC - USA
    Posts
    261
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate on click?

    Yes, you can do both.

  3. #3
    No Products Registered

    Join Date
    Mar 2007
    Location
    San Diego
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate on click?

    You can use the Set angle action to rotate it and use the load frame action to load a new image

  4. #4
    No Products Registered

    Join Date
    Jul 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate on click?

    Thanks for your quick reply. The Set angle action works, but it only works for 1 click only. I need it to rotate any time it is clicked.
    EDIT: I tried the Always event but that does not work.

  5. #5
    No Products Registered

    Join Date
    Feb 2007
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate on click?

    You have to think logically.

    If you've done on click set angle to 90 degrees then every click it will be set to the angle of 90 degrees.

    If you want it to move another 90 degrees from it's current angle then you need to use an expression to get the objects current angle then add another 90 degrees to it. So on click set angle to get current angle plus 90 degrees.

  6. #6
    No Products Registered

    Join Date
    Jul 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate on click?

    I'm not sure how to express that in the expression?

  7. #7
    No Products Registered

    Join Date
    Jan 2007
    Location
    NC - USA
    Posts
    261
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate on click?

    Object -> Set angle(angle('Object')+90)

    Try something like that.

  8. #8
    No Products Registered

    Join Date
    Feb 2007
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate on click?

    Do your condition first.

    - on click with left mouse button.

    No set your action. Right click on the objects box and select "Set object angle" from the menu.

    Now in the expression editor, this is where you put the expression. Click "retrieve data from object" button, now select the object and click "get ange".

    The expression will read 'Angle( "object name" )'.

    Now add + 90 to the expression.

    'Angle( "object name" )+90'

    click ok.






  9. #9
    No Products Registered

    Join Date
    Jul 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate on click?

    OK...got it. my problem was I was setting 90 in the expression editor and when I clicked ok I then tried to enter +90 so it wouldn't work. Then realized how the expression editor worked. I clicked Retrieve data from object then added -90. Works now and rotates clockwise. Thanks for your help everyone. I new to MMF2 and still trying to learn this great software.

  10. #10
    No Products Registered

    Join Date
    Feb 2007
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate on click?

    If you wanted smooth rotation as well, theres a number of ways you can do it. One is to store the target angle in one of the objects alterable values, so on click set alt value A to get object angle + 90. Then on a new event line do the condition, object angle < than alterable value A then set object angle to get object angle +1.


Page 1 of 2 1 2 LastLast

Similar Threads

  1. Rotation issue: Click button, rotate object X degrees, stop (without holding key)
    By Babalucci in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 8th April 2016, 03:10 AM
  2. after the first click, the system waits for a second before accepting the next click
    By kikiriki in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 9th August 2013, 01:45 PM
  3. Help Please... Need to Rotate Rotate object with a wheel
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 12th February 2012, 04:48 PM
  4. Rotate towards and shortest rotate direction
    By Tiles in forum File Archive
    Replies: 19
    Last Post: 2nd October 2010, 02:25 PM
  5. rotate to an angle example
    By LazyCoder in forum File Archive
    Replies: 3
    Last Post: 20th September 2006, 04:49 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
  •