User Tag List

Results 1 to 7 of 7

Thread: Please help!

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Please help!

    I'm working on a game and so far I have one issue. I want the canon to shoot the red ball in the direction/angle of the canon (where it's pointing). I'm using pinball movement for the red ball,.because I want it have an arc. I have the speed of the red ball set by a counter. It doesn't matter where I have the canon pointed,.it still shoots at one angle (direction) and that I don't want. I just can't get it. Use left mouse to set the speed of the red ball and right to launch it. Set the counter over 40 or 50 before clicking right mouse to launch it. I would like the red ball to launch at the angle from the canon,.the lower the canon angle is, the lesser of an angle and so on. Oh a good example would be the way Angry Birds are launched. That is exactly what I would like this to do.
    You'll see what I mean in the example. Please help!
    Thank you,

    John

    http://www.mediafire.com/?u0k31ka4g6e1wd8

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid 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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    I cannot open that file, but I think I know the solution to your problem.

    If you set the actual direction of the cannon, simply set the ball to its direction. If you set the angle of the cannon, you need to convert the angle to a direction first. You can use the Clickteam Movement Controller for this (It's actually an easy calculation, but I always use the CMC for this). Simply create the ball and set it's direction to the cannon's direction (converted from its angle).

    I attached an example.
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks Popcorn,.that was perfect. I don't know why you couldn't open my example,.but you nailed the issue! Thanks again man!!

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid 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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    No problem, Smanman, I am glad that was what you were looking for

  5. #5
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Angles deal in 0 to 360, and Directions deal in 0-32, so all you need to do to get an angle from a direction is multiply by 11.25, or divide by 11.25 to get a direction from an angle.

  6. #6
    No Products Registered

    Join Date
    Oct 2011
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Smanman. I couldn't view your example because the one you posted was the BACKUP file. it was .001 extension. Remember to post the .mfa
    Looks like Popcorn beat me to it!

  7. #7
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    The backup file can have its extension changed to .mfa to be opened, or you can open it from MMF2 without changing the extension.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •