User Tag List

Results 1 to 7 of 7

Thread: simple click on objet

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Nov 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    simple click on objet

    I'm sure this is easy to do but I haven't been successful. I have a few mouse controlled objects in my game. When the animations finish, I have a new object appear which is a mouse cursor image, and also some text. I want the next frame to load when the user clicks on the text. But I'm either doing it wrong (user clicks with left button on text object = Next Frame> or the cursor object is not really the mouse pointer. It's set to mouse controlled. Maybe there's a conflict with the other mouse controlled objects. Please help

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro

    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    961
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problem you're having is related to the mouse controlled movement, please change this movement to static.

    When the animation finishes and you want the mouse cursor to change (rather then a new "mouse cursor" active object appearing) ... use the Cursor Object, and choose "Set shape of cursor to Active Object..." so it changes the cursor's look.

    The action to go to the next frame should now work, it's because the Mouse Controlled movement is different to using the cursor normally.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    mbuddha - If you're using Mouse Controlled movement detecting a click is done using player 1 fire button, so you'll need to use something like this:
    Player 1 presses fire button
    +Active is overlapping String
    : Jump to Next Frame

    Where Active is your mouse controlled object

    Alternatively you can make your object static and use something like this to make it move with the mouse:
    Always
    : Set X of ("Active") to XMouse
    : Set Y of ("Active") to YMouse

    And use something like this to hide the actual mouse pointer:
    Start of Frame
    : Hide Mouse Pointer

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Nov 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well I tried everything suggested and I am having no luck. The cursor object simply does not appear for me. I have an event that creates object -> cursor, is there another step?

    Player 1 presses fire button
    +Active is overlapping String
    : Jump to Next Frame
    I don't know how to do two conditions together. Actually this is a problem for me because I have the text object AND the Active in the frame, just hidden invisible so they will overlap as soon as the game starts. There's probably a better way to deal with objects that need to appear later.

    Alternatively you can make your object static and use something like this to make it move with the mouse:
    Always
    : Set X of ("Active") to XMouse
    : Set Y of ("Active") to YMouse

    And use something like this to hide the actual mouse pointer:
    Start of Frame
    : Hide Mouse Pointer
    I'm not sure how to do this here. Where do I set the X and Y ?

    Thanks for all the help.

  5. #5
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro

    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    961
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've put you an example together covering the two suggestions

    Try out both frames, and take a look at the events for a more clearer understanding.

    Quote Originally Posted by mbuddha View Post
    Where do I set the X and Y ?
    You'll see this in the example, but you can use XMouse and YMouse in your expression.
    Attached files Attached files

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Nov 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for that! Very helpful. I am able to recreate this successfully. However in my testing I found that this method for setting XMouse and YMouse does not work when I have a mouse controlled active in the frame. An action occurs with the mouse controlled active, then I have the active pointer object appear but it does not move (even if I destroy the mouse controlled active) It DOES move when I set the mouse controlled object to static, but obviously that's not what I want.

    I am exporting to SWF - and the first suggestion (using the cursor object) isn't possible, because that object is not available when set to build to SWF.

    Edit: I think I am able to achieve my goal via:

    Player 1 presses fire button
    +Active is overlapping String
    : Jump to Next Frame

    Where Active is your mouse controlled object
    now that I figured out how to insert an extra condition on the same line.

  7. #7
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro

    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    961
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mbuddha View Post
    I think I am able to achieve my goal via:
    If you want to check or see another method of how you could do this, I've updated my example for you which includes the mouse controlled movement.
    Attached files Attached files

Similar Threads

  1. bug avec l'objet actif et colle l objet en decor nombre limité ?
    By CapitaineCaverne in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 2nd September 2013, 12:29 PM
  2. Ciblage d'objet parent à la création d'un objet sur un autre
    By waw_demmon in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 10th April 2013, 03:39 AM
  3. Jeu simple ... Speed click 2 ! Le retour !
    By 2310 in forum File Archive
    Replies: 6
    Last Post: 3rd March 2011, 05:43 PM
  4. Jeu simple ... Speed click
    By 2310 in forum File Archive
    Replies: 5
    Last Post: 25th February 2011, 03:05 PM
  5. Objet Combo Box devant un objet actif
    By dampat in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 6th February 2009, 08:37 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
  •