User Tag List

Results 1 to 3 of 3

Thread: 8 Direction movement problem

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Lukiester's Avatar
    Join Date
    Feb 2014
    Location
    Melbourne
    Posts
    373
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    8 Direction movement problem

    I was wondering how to do the 8 direction movement but without it changing the characters direction and just moving it? This is because i want the mouse changing the direction of the character so i can face one way but move the other.
    Thanks for the help, Lucas

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    I can think of 2 quick ways:

    1) create an active object for mouse pointer
    always
    >>> (pointer object) set X coordinate to xmouse
    >>> (pointer object) set Y coordinate to ymouse
    >>> (player) direction - look in the direction of (pointer object)
    (would change direction while moving though )

    2) in a single action:
    always
    >>> (player) direction - choose direction - expression: OAngle( "player", XMouse, YMouse ) / 11.25
    (but you'll have to set deceleration to 0 or object movement direction would change while decelerating)

    other more polished options could include custom movement and angles

    EDIT:
    3) a quick and clean angles solution:
    always
    >>> (player) set angle to: OAngle( "player", XMouse, YMouse )
    (but you must draw only right animation direction of player,
    works well for 100% top-down games)

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Lukiester's Avatar
    Join Date
    Feb 2014
    Location
    Melbourne
    Posts
    373
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    i am doing it with an xbox controller. This works but only when the object is still and not when its moving

Similar Threads

  1. Replies: 14
    Last Post: 21st April 2015, 11:40 AM
  2. Problem with 8 direction movement
    By Eingya in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 25th August 2014, 12:35 AM
  3. Spaceship movement left and right trought bouncing ball movement instead 8 direction?
    By daryuss in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 22nd May 2012, 09:33 PM
  4. eight direction movement and shooting problem
    By brett in forum Multimedia Fusion 2 - Technical Support
    Replies: 24
    Last Post: 17th May 2012, 09:36 PM
  5. 8 Direction Movement and shooting problem
    By IY5 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 2nd February 2010, 02:12 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
  •