User Tag List

Results 1 to 2 of 2

Thread: Direction Detection using PMO?

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

    Direction Detection using PMO?

    Does anyone know of a way to track directions? As in 8 directions? I have events for shooting, and things work fine when doing things like "repeat while Up is pressed", but when i add "Up+Right", it just aims to the right and completely bypasses the angled aiming. So i tried adding a counter to see if that could work, and the same thing happens. When pressing Up, it goes to 8. When pressing right it goes to 4, but when adding the Up+Right to a line it just bypasses and goes straight to 4.

    EDIT: Okay, for some reason, you have to have the main 4 directions setup in order 1st:
    Repeat while Up is pressed
    Then you have to add the diagonals afterwards....strange. Seems there should be a better way of tracking directional movement?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    PlasmaVoid's Avatar
    Join Date
    Jan 2015
    0 Post(s)
    0 Thread(s)
    Your code will always run from top to bottom, once your entire code is finished, it draws a frame. Whats happening is that it your player will hold up and right, but because the the condition telling the game to set the players direction to 4 is last, it will set his direction to 4 right before the frame is drawn, making it seem like the up condition was never met. Consider adding negated conditions like this:
    While Up is pressed
    While Right is pressed
    While Left is NOT pressed
    >run X event.

Similar Threads

  1. How do you get the opposite direction from current direction?
    By PotatoMerchantz5 in forum Fusion 2.5
    Replies: 11
    Last Post: 7th December 2015, 02:02 PM
  2. Smoothly rotating spinner with detection for where it stops? Angle vs Direction.
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 2nd September 2012, 02:55 AM
  3. 'Manual box colission' VS 'Built in colission detection ( fine detection checked )'
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th February 2012, 09:32 PM
  4. Use Fine Detection [checked] VS Use Fine Detection [unchecked]
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 26th January 2012, 08:32 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