User Tag List

Results 1 to 8 of 8

Thread: WASD + Mouse controls

  1. #1
    No Products Registered

    Join Date
    Jun 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    WASD + Mouse controls

    I'm making a top-down view game and having trouble implementing a WASD + Mouse control scheme. Any pointers/tutorials?

  2. #2
    Clicker Fusion 2.5 Developer
    00J's Avatar
    Join Date
    Jun 2006
    Location
    Virginia, USA
    Posts
    1,510
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WASD + Mouse controls

    Yup, you've got the w,a,s,d bit down, for the mouse control, have a top "torso" and legs "bottom" have the bottom controlled by the keyboard, and have the top half look at the mouse pointer, you have to make a second object set to the mouse's x,y position "always" because there is no look at mouse pointer event. Make it a crosshairs or something.



  3. #3
    No Products Registered

    Join Date
    Jun 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WASD + Mouse controls

    Thank you so much!

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Posts
    2,289
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: WASD + Mouse controls

    Look at mouse pointer event? Sounds interesting.

  5. #5
    No Products Registered

    Join Date
    Jun 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WASD + Mouse controls

    I'm having a problem with this. My game area is bigger than any one screen, and I have to set the mouse-controlled (crosshair) object's area to that whole area. But this makes the player's rotation uneven (smooth when the cursor is near, choppy when it's off-screen) and also has the obvious problem of letting the cursor go off-screen. Any ideas?

  6. #6
    Clicker Fusion 2.5 Developer
    00J's Avatar
    Join Date
    Jun 2006
    Location
    Virginia, USA
    Posts
    1,510
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WASD + Mouse controls

    Heh Novabrain, this would probably be really easy to add to MMF but not as an extension, as part of MMF.

  7. #7
    Clicker Fusion 2.5 Developer
    00J's Avatar
    Join Date
    Jun 2006
    Location
    Virginia, USA
    Posts
    1,510
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WASD + Mouse controls

    No, your using the wrong method.

    Remove the Mouse controlled Movement completely and add this code as a behavior inside your crosshairs.

    Always
    Set Crosshairs X Position to X Mouse
    Set Crosshairs Y Position to Y Mouse

    You can find the Mouse controls in the list of options to apply to the crosshairs object look for Position Set X Set Y, then you can Choose in the expression evaluator [color:#FF0000][Retrieve data from object][/color]Once on that form Choose [color:#FFFF00][The Mouse Pointer and Keyboard][/color] Remember you have to do this for the X Position of your Crosshairs and the Y Position of your Crosshairs.

    Now that I think about it, it is a bit complicated if you don't have experience. :crazy:
    [color:#33CC00]
    P.S. I'm telling you to go into the Behaviors of your crosshairs to add the CODE to keep the confusion down, it's harder from the main event editor because there is so much data to examine.[/color] :grin:

  8. #8
    No Products Registered

    Join Date
    Jun 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WASD + Mouse controls

    Hey, thanks! Now things are working really well.

Similar Threads

  1. How to make movement with WASD.
    By Bittergamer1886 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 21st August 2012, 06:38 AM
  2. Configure controls (custom controls)
    By Leander in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 8th June 2010, 11:47 AM
  3. Custom controls that include the mouse?
    By dustingunn in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th August 2008, 09:51 PM
  4. WASD insted of arrows?
    By piki in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 27th May 2008, 09:30 PM
  5. Mouse click events runs faster when mouse moves
    By chrilley in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 2nd February 2007, 02:54 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
  •