User Tag List

Results 1 to 9 of 9

Thread: Problem with angle rotation

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jun 2016
    Location
    Sweden
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with angle rotation

    I have a problem when i rotate a solid-block, My player get stuck on the ground once the block is rotate either 90 or 180, but works fine on 270 and 0.

    The block is 32x32 and the view hot spot i set on 16x16

    Here is an example https://www.mediafire.com/file/kcfbc...TestRotate.mfa

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    495
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Check if the block has "Use Fine Detection" on. It might be that some stray or transparent pixel is catching the player while rotating. Turning off Use Fine Detection will make sure Fusion is only looking for the edges of the graphic, and not attempting to calculate pixel-perfect precision.

  3. #3
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jun 2016
    Location
    Sweden
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "Use fine detection" is off. Been testing it with on and off. Still same problem

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    495
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Found something. If you set the counter to the player's Y position, you'll notice that when you rotate the blocks, he drops down a pixel. This means he's falling when the blocks rotate and thus overlapping the blocks. A simple solution would be to change the player collision detector's Always Y-Position command to something more specific, like when it's not overlapping a Group.PhysicalObject, then consolidate the X-Position command into the Always command up above and save yourself a conditional.

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Posts
    1,299
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    I imagine it won't help that your blocks are 32x32 - if you want to rotate an object around its center, its dimensions need to be odd numbers. The center of a 32,32 block is 15.5,15.5 (remember that the first pixel is 0,0, not 1,1), so if you put the hotspot at 16,16, it will shift by 1 pixel vertically and horizontally as it rotates.

  6. #6
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jun 2016
    Location
    Sweden
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dsilvers, if i change that, the problem will still be there right?

    MuddyMole, i tried a 33x33 block. Same problem,

    Same problem occurred on horizontal value aswell but only on angle 270 and when you walk right not left. (If jump while pressing right key on a wall of blocks, the player bumps his head on something)

    Is is because of my physic i made for the player?

    I been doing a whole game on this physics and never have i had a problem with it till now. And it's only when i'm trying to rotate the angle of a solid block. Weird.. ^^

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    This doesn't directly answer your question with a reason,
    but baking different directions in the animation seems to solve the issue without too much struggle,
    don't know if this is applicable for your needs:
    https://www.dropbox.com/s/n71wyqxrae...ate-2.mfa?dl=0

    from past testing, I seem to recall "angles" happened to be quirky with collisions, at times, might be that..

  8. #8
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jun 2016
    Location
    Sweden
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    schrodinger, having diffrent directions like your example works. Guess i will have to work with that for now

    Thanks

  9. #9
    No Products Registered

    Join Date
    Dec 2016
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    another option would be to Always raycast down from where you would like the player to be able to step up on things, if your ohysics doesnt already do that. That way tge raycast can push your player up as the ground changes beneath him.

    Not sure if CTF does this but i used it successfully in a game app i developed on a different platform.


    Sent from my iPhone using Tapatalk

Similar Threads

  1. Troubles with HWA angle rotation.
    By J3sseM in forum Android Export Module 2.5
    Replies: 3
    Last Post: 14th October 2014, 10:07 AM
  2. Angle Rotation Calaculation (mathification)
    By YAS in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 29th June 2008, 03:25 AM
  3. Rotation/Angle Problems
    By Joeyotrevor in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th June 2008, 12:41 AM
  4. Antialias a rotation angle
    By Langol in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th November 2006, 11:08 AM
  5. B241: Rotation angle bug
    By Random in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 21st August 2006, 12:01 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
  •