User Tag List

Results 1 to 7 of 7

Thread: User mouse click to start moevement.

  1. #1
    No Products Registered

    Join Date
    Dec 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    User mouse click to start moevement.

    Hey, ive just spent a few minutes going through the chocobreak tutorial which comes with mmf2. Ive completed and now im just fiddling around trying different things while i get to grasps with the program. However i stumbled accross a problem. I want the ball not to start its movement as soon as the level starts, so i unchecked the "move at start" box and i set up a new condition. user clicks left mouse button and for the ball i set movement to start. When i launch the game, the ball is static but wont start movement when i click the left mouse button. I know i have set it up right because i also tried it with pressing the enter key which worked fine. Ive also tried it with all mouse buttons but it doesnt want to work. It wont work with may laptop touchpad or external mouse. Anyone have any deas? Cheers!

    PS. When i miss the ball, i have set its position reletive to the bat. It goes to that position ust fine but i would also like it to follow the bat when i move it and then start moving when i press left mouse as stated above. Any ideas on this too? Thanks!

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: User mouse click to start moevement.

    Hello and welcome the the forum.

    The mouse has been bound to the player 1 movement, so it is through the player 1 object's fire 1 action that you access it.
    [events]
    *[obj_player1] Pressed Fire 1
    -[obj_active] Movement Start
    [/events]
    (Make sure its just Fire 1, not Fire 1 *and* up.)
    .:::.Joshtek.:::.

  3. #3
    No Products Registered

    Join Date
    Dec 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: User mouse click to start moevement.

    thanks a lot for the quick reply. it works fine now How about attaching the ball to the bat, any ideas on that?

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: User mouse click to start moevement.

    For your second question, you could try something like:
    [events]
    *[obj_active] Movement is stopped?
    -[obj_active] Set position of ball relative to the bat
    [/events]
    .:::.Joshtek.:::.

  5. #5
    No Products Registered

    Join Date
    Dec 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: User mouse click to start moevement.

    Thanks again. Works like a charm. If you dont mind i have another question hehe. Is it possible to se the angle at which the ball bounces depending on where it collides with the bat? At the moment it seems to follow through at the same angle no matter where it impacts on the bat. I think it would be nicer for it to bounce at more of an angle the closer it impacts to the edges of the bat

  6. #6
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: User mouse click to start moevement.

    This isn't perfect, but you could try something like
    [events]
    * [obj_active] (BallGolden) collides with (Player)
    - [obj_sound] Play sample POP04
    - [obj_active] (BallGolden) Look at (0,0) from (Player)
    - [obj_active] (BallGolden) Set direction to Dir( "BallGolden" )+16
    [/events]

    This will make the ball look toward the centre of the bat and then reverse its direction, therefore making the ball look away from the centre. So the further to the sides the ball was, the more of an angle it'd be at.

    To make the effect more pronounced you could make it look at 0,-35 relative to the bat instead of 0,0.
    .:::.Joshtek.:::.

  7. #7
    No Products Registered

    Join Date
    Dec 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: User mouse click to start moevement.

    Hmmm. i seem to be having trouble with that. Im not sure where the options are that you mentioned. I think maybe they are called something else in the pogram. Either than or im just dumb:P

Similar Threads

  1. a click which sends the user to a webpage (mmf2)
    By Aloan in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th July 2009, 05:59 PM
  2. Mouse Movement prevents mouse click event?
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd March 2008, 02:52 AM
  3. 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
  4. Mouse click doesnt work when Mouse movement used
    By Blizna in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 21st September 2006, 02:24 PM
  5. Mouse click w/mouse controlled objects??...
    By WillBellJr in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 30th July 2006, 02:27 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
  •