User Tag List

Results 1 to 7 of 7

Thread: cursor following

  1. #1
    No Products Registered

    Join Date
    Jan 2010
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    cursor following

    I have my game as a point and shoot side scroller. What I need is for my character's direction to face the cursor, but still work off of the platform movement.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: cursor following

    Try Animation-->Change-->Direction of animation

  3. #3
    No Products Registered

    Join Date
    Jan 2010
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: cursor following

    That didnt work. It just stays still.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: cursor following

    Another way would be to make the object with platform movement invisible, and have a "player display" object that always sets its position to the invisible object. Then just set the direction of the display object.

  5. #5
    No Products Registered

    Join Date
    Jan 2010
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: cursor following

    Thanks, I just learned that I could make 8,16,32 directions for each animation. Then I set it to look in direction of, and It worked. Thanks for your time UltimateWalrus.

  6. #6
    No Products Registered

    Join Date
    Oct 2009
    Posts
    480
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: cursor following

    You also could use an angle instead: Always set angle of player to NUMBER-ATan2(YMouse-YActionPoint( "Player" ), XMouse-XActionPoint( "Player" )). Change NUMBER to 0, 90, 180, or 270 depending on the direction your player is facing.

    -Variant

  7. #7
    No Products Registered

    Join Date
    Dec 2006
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: cursor following

    Here's what I do. I would make an invisible object and set its x and y coordinates at the mouse.
    Always==>Set X to XMouse, Set Y to YMouse,
    Then I would make it so that the player is always looking at that object
    Always==>Player Look in the direction of object at (0,0)

Similar Threads

  1. Stack Cursor
    By DizzyDoo in forum Lacewing
    Replies: 1
    Last Post: 19th October 2010, 11:51 AM
  2. Set cursor position
    By RobertRule in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th November 2008, 01:08 PM
  3. cursor object? or own cursor?
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 31st December 2007, 07:52 AM
  4. Restoring the cursor
    By gregw in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 2nd March 2007, 06:56 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
  •