User Tag List

Results 1 to 4 of 4

Thread: Physics object will never face left

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jan 2018
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Physics object will never face left

    I'm trying to make it so that an object can rotate in 360 degrees, but change direction from left to right (So that it doesn't appear upside down when facing left)
    The problem is, the physics object will NEVER face left, no matter how many times I set it to in the code. If I turn off auto-rotation, it appears to do so, but then I can't angle it no matter what I try doing.
    Is it possible to make a physics object face another object while also being able to rotate in 360 degrees?
    I made a little test file
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleInstall Creator Pro
    Julian82's Avatar
    Join Date
    May 2012
    Location
    outbuddies.com
    Posts
    962
    Mentioned
    48 Post(s)
    Tagged
    0 Thread(s)
    Auto rotated physical objects ignore animation directions. Make another animation where the object is flipped upside down (use the right direction also). Store the angle in an alterable value. If the object‘s angle value is between 91 and 269 degrees (facing left) change to that animation. If the object angle is lower 90 or greater 270 (facing right) change back to the regular animation. Had the same issue with the piranhas in my game^^

  3. #3
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jan 2018
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My only problem with that is that one of the animations needs to stay consistent, and I've had trouble in the past trying to force animation frames. But I'll give that a shot! Really the only time it's noticeable is right when the object spawns (Basically, you turn the enemies into bullets, which fly towards other enemies, so I have to make the transition as seamless as possible) and after the object starts flying it won't be that noticeable.

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleInstall Creator Pro
    Julian82's Avatar
    Join Date
    May 2012
    Location
    outbuddies.com
    Posts
    962
    Mentioned
    48 Post(s)
    Tagged
    0 Thread(s)
    turning angle valid
    animation flipped is not playing
    - store animation frame to alterable value
    - change animation to flipped
    - force animation frame to stored value
    - restore animation frame (restoring is needed, otherwise the animation freezes)

Similar Threads

  1. Making a launched object face where it was aimed at
    By TheHandwovenBox in forum Fusion 2.5
    Replies: 2
    Last Post: 26th August 2019, 06:26 PM
  2. Replies: 5
    Last Post: 28th February 2017, 05:56 PM
  3. Replies: 3
    Last Post: 18th January 2015, 10:05 AM
  4. Setting angle to face another object
    By ELCGames in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 27th December 2010, 03:16 PM
  5. Rotate object to face another...?
    By TheWonkits in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 18th July 2009, 01:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •