User Tag List

Results 1 to 6 of 6

Thread: 2 hopefully quick questions.

  1. #1
    No Products Registered

    Join Date
    Oct 2009
    Location
    California US
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    2 hopefully quick questions.

    Ok, so I'm making a game that is sort of like doodle jump for the ipod touch/iphone, in case that helps. It's not entirely like it, but that's just an example. Anyways, I need for the screen to move upwards when my character is near the top of the screen, but when my character is near the bottom of the screen, it will stay still.

    The second question, is how do I get an object to follow the mouse, but not stay exactly on it? I need for my character to follow the mouse, but have a speed limit to his movements. Here's the trick. I need for it to be able to just follow the mouse anywhere(at a max speed), and I need to be able to make it so that the character will only follow the X -axis (side to side, but not everywhere, and still keep the speed max.

    Thank you so much for the help!

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    658
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: 2 hopefully quick questions.

    1. When the character gets a certain distance away from the top of the screen (Y Top Frame + 20, or whatever), center vertical frame position from current frame - 1. Of course, you can fill in whatever numbers you want. As long as you don't have code that'll scroll the screen down, it will never scroll down.

    2. Depending on your skill with Fusion, you can either say that when the object's X and Y position do not equal XMouse and YMouse, Set Position At 1,0 from itself while looking in the direction of the mouse. Unfortunately this ends up fairly limited and can make for some funky movement when it inevitably does reach the mouse's X and Y coordinates, in which case use the trigonometry functions to calculate the angle and distance the object has to go to get to the mouse (specifically, ATan2 to pull the X and Y coordinates of where it's headed. Look up posts on the trig functions for more info).

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2009
    Location
    Australia
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 2 hopefully quick questions.

    I would recommend checking out the Tutorials link to your right & looking for
    the "Platform Games" tutorial by chaos & Popcorn's "All About Scrolling" tutorial
    also read the PMO objects help file if you decide to use it.

    Here's a example I put together of how i would probably approach what (I think) your trying to achieve

    View MFA

    the camera movements a bit shaking though

    Hope this helps a bit

  4. #4
    No Products Registered

    Join Date
    Oct 2009
    Location
    California US
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 2 hopefully quick questions.

    Ok, so I'll try the scrolling one, but I'm not good with the coding (yet), so is there any other way to make it follow the mouse with a max speed, or could you explain the codes I should use more clearly? Thanks!

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    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)
    Tisnart's Avatar
    Join Date
    Feb 2008
    Location
    On, Canada
    Posts
    1,073
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: 2 hopefully quick questions.

    For your second question, you could try this method
    Object to follow the mouse Example

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    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)
    Tisnart's Avatar
    Join Date
    Feb 2008
    Location
    On, Canada
    Posts
    1,073
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: 2 hopefully quick questions.

    Jacob, I had never seen that game (doodle jump) before until you mentioned it.
    I watched some youtube clips on it and decided to replicate it.

    I got the scrolling thing and the bouncing movement of the character all set up and started messing around with my own version.
    If you want I post it after I finish messing around with it

Similar Threads

  1. A few quick questions.
    By redpandagames in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 22nd May 2013, 01:17 AM
  2. quick questions
    By method72 in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 10th May 2011, 11:54 AM
  3. Some quick questions....
    By TaoJeetKuneDo in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 16th May 2010, 04:35 PM
  4. A few quick questions
    By Toneslice in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th September 2008, 12:10 AM
  5. quick questions or so
    By Darke in forum The Games Factory 2 - Technical Support
    Replies: 8
    Last Post: 11th September 2007, 12:36 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
  •