User Tag List

Results 1 to 7 of 7

Thread: Click Movement

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleFirefly 3D Module

    Join Date
    Apr 2008
    Location
    Washington
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Click Movement

    Ok first I would like to say thins is my first post.

    This maybe a question that is way beyond me right now, but here we go.

    Can you have your player move with a mouse click or such, like a RTS game? Is it easy to do?

    Any help would be great, i have searched the forums and can't seem to find what i'm looking for but I may have over looked it.

    Thank

    Jgooler

  2. #2
    No Products Registered

    Join Date
    Feb 2008
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Click Movement

    You only need one event:
    User clicks- Set X position of player to XMouse, Set Y position of player to YMouse.

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleFirefly 3D Module

    Join Date
    Apr 2008
    Location
    Washington
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Click Movement

    Thanks.

    I got that but I was looking for a point and click then the player would walk that direction. The way above makes you jump.
    (maybe i'm doing something wrong)

    Jgooler

  4. #4
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Location
    Suffolk, UK
    Posts
    435
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Click Movement

    You could have an invisible active object and when the mouse is clicked, set it's position to the x and y coordinates of the mouse:
    *Left Mouse Clicked
    = Set X position of Invisible object to XMouse
    = Set Y position of invisible object to YMouse

    Then have your player objects movement as Bouncing Ball and have a condition for it:
    *Always
    = Direction - Look in the Direction of - then in the Dialog box click relative to button, select the invisible object, then set the x and y boxes to 0

    Instead of the Always condition, you could use Player Active is overlapping Invisible Active, and add a movement stop action as this would stop it juddering about when they meet, but you'd also need a start action for when they aren't overlapping

    There are more ways to do it but that's probably one of the easiest

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleFirefly 3D Module

    Join Date
    Apr 2008
    Location
    Washington
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Click Movement

    I'll give that a try thanks.

    Jgooler

  6. #6
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Click Movement

    Also, you could use the move by bezier object using linear movement. It does this quite well (plus it's really easy).

  7. #7
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Click Movement

    if you are wanting an RTS movement I suggest you look at the advanced pathfinding object. It allows path movement which is perfect for most RTS games. Same as you see in classic games sucha C&C and AOE etc

Similar Threads

  1. Need help for point and click movement?
    By dibibidibibe in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd June 2012, 03:35 PM
  2. Mouse-Click Movement
    By StingRay in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 19th July 2010, 04:20 PM
  3. click movement
    By hawk1281 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 24th August 2009, 02:24 AM
  4. How to add continuos movement with only a click?
    By 7Heroes in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 25th July 2009, 09:00 AM
  5. Click and drag movement
    By maestro1 in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 31st December 2008, 02:49 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
  •