User Tag List

Results 1 to 5 of 5

Thread: X position to X Mouse - No Keyboard left right ?

  1. #1
    Clicker Fusion 2.5HTML5 Export Module

    Join Date
    Jun 2016
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    X position to X Mouse - No Keyboard left right ?

    Simple question

    Breakout Game:

    Mouse and Keyboard movement problem

    I set

    Always -> Set X position to XMouse ( Mouse movement works )
    But when adding "Select movement from the paddle" ( Eight Directions ) it dont works with the keyboard.

    When deleting the XMouse it works with the keyboard but no longer with the mouse.

    Any ideas to this little problem ?

    Thanks in advance.

  2. #2
    Clicker Multimedia Fusion 2Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    esp's Avatar
    Join Date
    Aug 2015
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because you are always setting the X coordinate of your active to the Xmouse ! So every moviment you would make in the x-axe it would always re-setted to the Xmouse . To avoide this just add a variable :

    var "move"

    move = 0 >
    Set X position to XMouse

    Select on your active the eight direction , then just change the variable to one when you want it to work with the keyboard

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF 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)

    Join Date
    Jun 2006
    Location
    Killeen, TEXAS
    Posts
    1,037
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    moving left/right with keys will do nothing - because its always being set by the mouse's X position.
    choose 1 or the other

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,423
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Hi there Peanuts,

    use a counter or a flag.

    if your holding the right or left the the counter to 1
    if you are not holding the right or left set the counter 0

    if the counter = 0 Set the X to pos of the object = the X pos of the mouse.

    I'll post an example in a few.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid 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)

    Join Date
    Jan 2016
    Posts
    370
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    guys i know you are ALL trying to be helpful and thats a good thing, but personal jabs at each other only adds toxicity to our community that we would prefer to stay nice and helpful.

    @sparkman - please ensure you quote the correct solution provider, otherwise people think you are on some crusade to harass them. your not right ? <Infraction given>
    @danjo - if you know what he's doing why bite ? just ignore. stay happy.

    @peanuts - danjo has explained why your problem is happening and both esp and sparckman are offering the same solution which is to use both ways at the same time, which should work once you understand what they are trying to say and implement it correctly, good luck.

Similar Threads

  1. Replies: 6
    Last Post: 19th January 2017, 04:13 PM
  2. Get position of key on keyboard?
    By BtheDestroyer in forum Fusion 2.5
    Replies: 7
    Last Post: 26th February 2015, 09:11 PM
  3. Can't create more than 9 objects when pressing a keyboard key at mouse position
    By Villmaxie in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 3rd April 2012, 10:00 AM
  4. Mouse movements and left click
    By videogiochi in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th January 2011, 03:38 PM
  5. Top left doesn't work... new keyboard or MMF2 bug?
    By Raylax in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 31st March 2008, 03:00 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
  •