User Tag List

Results 1 to 6 of 6

Thread: Changing the active object pivot related to mouse controller

  1. #1
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Jan 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Changing the active object pivot related to mouse controller

    Hi, basically everything works just fine. Except for one thing.

    Note: I need the the active object movement to be restricted to left and right, and i need a limit too. (I'm not sure if the mouse controller is the only way to do it).

    As you know the pivot of an active image is set by default to the left-top vertices. So if i use a mouse controller to control an active image, whenever i tap it will align that object pivot to the mouse cursor, instead of having the center of both aligned with each other. this is noticeable by the player, alter the "movable" area I've specified and looks wrong.

    I know that it is possible to change the pivot's position, i did it for the bullets to leave from to specific coordinates even being related to an object, from it.

    But i'm finding it mas eu estou achando isso dificil, e não parece encontrar a solução.

    Please Help.

    Yuri

  2. #2
    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
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Create an event that always sets the x position of the active object to the x mouse position.

    Then add some limiters to your events that say for example

    "active x position is greater than 0" and "active position is lower than 640"

    This would limit the actives movement to the position between 0 and 640 pixels.

    So full example would look like.

    Always
    +X Active > 0
    +X Active < 640

    -> Set X Active to X Mouse

  3. #3
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Jan 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks RhysD, I'll try it

  4. #4
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Jan 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    RhysD, that does what the mouse controller does. Ok, but the (active image's center) is still being the left-top corner, instead of it's own(image) center. That's what is so problematic to change (fix) ;.(

    Because it looks like there is no option to define that. I'll keep trying here.

    -Simulation: Whenever I tap somewhere on the screen of the iDevice in the horizontal zone to move the active either to the left of to the right, it moves, however eve setting the x and y positions to the mouse x and y positions, my active is being centered by it's left-top corner in relation to the mouse's center, instead of it's center to the mouse center. So the image is not being centered horizontally(X axis in my case) to the mouse's center.

    Obj: It is not supposed to move in the Y axis, just in the X axis, as it is.

  5. #5
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Jan 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think i did it, just found the button to change the hot spot and the action spot ;.D

    That allows me to set the active image's pivot to it's center. Problem is solved. ;.D

    This could be done by default, as it would save some clicks, considering i have 4 animations on that particular active, and i had to do one by one ;.D

  6. #6
    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
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you hold down the alt key while adjusting the hotspot on one frame of your animation, it will adjust it to that position on the other frames for you automatically.

Similar Threads

  1. Changing the brightness and contrast of active object?
    By J3sseM in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 12th June 2013, 10:07 PM
  2. Changing the size of active object animation
    By Yos in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th July 2012, 06:26 PM
  3. Mouse over active object problem
    By Sterling7 in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 29th June 2009, 12:27 AM
  4. How to make an active object look on the mouse
    By 006Rushaug in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 22nd November 2008, 07:45 PM
  5. Changing active object direction (???)
    By JohnC in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 19th January 2008, 11:58 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
  •