User Tag List

Results 1 to 9 of 9

Thread: Horizontal Rotation?

  1. #1
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    664
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Horizontal Rotation?

    Does anyone know of a way to make an object rotate horizontally? As in how a quarter spins on its side?

  2. #2
    No Products Registered

    Join Date
    Nov 2013
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you add 90 to its angle to make it rotate one quarter of a circle counterclockwise once, or add -90 to rotate the other way (clockwise) once. keep adding 90 or -90 to rotate per quarter of a circle.

    You can also go to image editor, right click on frame and select rotate and input how many rotated frames to make and whether it is clockwise or counter clockwise

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Not what he means...

  4. #4
    No Products Registered

    Join Date
    Nov 2013
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh, I'm sorry I misunderstood what you meant. My bad. I believe that's should be on the sprites themselves and can't be done through events.

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Basically, I think you have the following options:
    * You can animate the rotation, and draw each frame by hand - see pic above (probably the best solution for small objects, such as coins).
    * You can use a shader - eg. http://1drv.ms/MpGquE (only works for flat objects)
    * You can create a 3d model, pre-render it from various angles, and then create an animation from that (for rotating small pixel art, voxel models may be an option - see below).


  6. #6
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If it's a flat object (like a quarter) you might be able to cheat it using X Scale. However I would recommend just animating it.

    Always: Set X Scale to abs( cos(timer/1000.0) )

    timer is the count in milliseconds from the start of the frame. Dividing by 1000 will give a wavelength of 1 second, meaning the coin would take 1 second to return to the side it started.

  7. #7
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    664
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hey guys thanks for the replies, i found a way to do it. Somewhat similar to how Jacob mentioned

    I set an internal flag of 0 to subtract -0.25 every 02 sec then set an event in a little over 2 seconds to turn the flag on and add +0.25 to the scale. Then every 4 seconds just toggle the flag and it worked great Thanks for the input guys!

  8. #8
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That way will result in a hard change in speed when it gets to the outside though, which is fine if that's what you want. You can copy what I wrote verbatim into the expression editor though, and it should result in a smoother rotation. Replace timer/1000.0 with timer/4000.0 to make it take 4 seconds instead of 1

  9. #9
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    664
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks Jacob! I'll definitely give that a go! What i was using it for was simple background effects like snowflakes to start out with. I appreciate all the input folks, as always, clickteam forum to the friggin' rescue haha.

Similar Threads

  1. How to make IOS screen Horizontal.
    By UnicornMan in forum iOS Export Module 2.5
    Replies: 2
    Last Post: 19th January 2014, 12:24 AM
  2. Jeux defilement horizontal
    By math51 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 11th May 2012, 04:30 AM
  3. Scrolling horizontal à la souris
    By Cyberclic in forum File Archive
    Replies: 9
    Last Post: 16th May 2011, 07:10 PM
  4. Horizontal bar counter bug
    By MonkeyPunch in forum File Archive
    Replies: 0
    Last Post: 24th January 2010, 01:08 AM
  5. horizontal
    By SamG in forum File Archive
    Replies: 6
    Last Post: 20th August 2008, 01:35 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
  •