User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Pointing cannon with up and down button

  1. #1
    Clicker Fusion 2.5Android Export Module

    Join Date
    Sep 2017
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Pointing cannon with up and down button

    Hello to all.
    * Who can advise me how to create a cannon that raises and lowers the cane with 2 keys up and down,
    I do not understand where to start creating this effect
    The cannon must have a fixed end as a pin. and change degrees with 2 keys

    Sorry my translation; D

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    you can simply change the cane angle,
    make sure you set the hotspot in the middle of the "attached" body section of the cane,
    this will be the pivot point your cannon will rotate on,
    then you can do:

    repeat while player moves up
    >>> set cannon "angle" to cannon angle +/- (amount to rotate, i.e. 0.2)

    repeat while player moves down
    >>> set cannon "angle" to cannon angle +/- (amount to rotate, i.e. 0.2)

    where to put + or - depend on the cannon orientation, and your specific needs

    then you might have additional requirements, in case let us know

    (and welcome! )

  3. #3
    Clicker Fusion 2.5Android Export Module

    Join Date
    Sep 2017
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi I am a real beginner,
    but how do I create the point where it will turn the cannon, sorry I have to create an active object?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    sorry,
    yes I was talking about an active object, it's the most flexible object you will use 99% of the time in Fusion,
    the basic building block of your applications

    here's a very quick example of what I was suggesting above:

    turn_cane.mfa

    doubleclick on the object in the frame editor,
    you'll see the "hot spot" is in the middle of the green diamond,
    that's the point X,Y coordinates of an object are taken upon,
    and the pivot point around which the object will be turned when changing its "angle"

  5. #5
    Clicker Fusion 2.5Android Export Module

    Join Date
    Sep 2017
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you,
    thanks to your advice.
    * if I can still ask for help.
    now I would like to get a cannon ball out of a point in the direction of another point.
    Let me explain better, clicking on a cannon I would like to create an active object (cannon ball) that goes in the direction that may vary according to the inclination of the cannon
    I'm trying with poor results ..

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    You'll see you always have a number of different choices to make the same thing,
    the only problem with this is default solutions are a bit more heading towards "directions" instead of "angles",
    so to get a smooth result you'll have to code in some math, or use "physics" movements, which support angled movement.

    So, basically, upon clicking on cannon, you'd "create" a cannonball originating at 0,0 from cannon "ACTION POINT"
    (cleverly suspecting the cannon would have to shoot , I've already placed the action point in the mouth of the cane)
    then, you need to move the ball in the correct direction,
    so for examlpe you can use "physics bouncing ball", set initial speed to 0,
    and then in the same "create ball" event, in "movement - physics movement"
    set the ball "impulse" >> force to (any number) and angle to cane angle

    if you want the math solution or other ideas drop a line

  7. #7
    Clicker Fusion 2.5Android Export Module

    Join Date
    Sep 2017
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is what after hours of work, without knowledge and your help I managed to do. the cannon rotates up and down with the arrows.
    the cannonball starts at point x but I see that moving the cannon does not stay on the tip of the cane, but giving direction to the ball with the arrows I can not.
    Try using your advice
    Thank you so much,
    Daniel
    Attached files Attached files

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    I made some slight modifications (setting the ball impulse and angle, changing the cane hotspot etc.)

    Cannon_ball.mfa

    this should fix the issues you were experimenting?

  9. #9
    Clicker Fusion 2.5Android Export Module

    Join Date
    Sep 2017
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much, you are really kind
    * 1 question, but where am I? a full written guide with all the features of the MMF
    * Now I want to create an active object after 4 seconds that an object hits another object.
    But I would like to know if, apart from the examples in the tutorial. is there a complete guide?

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    There's a lot of guides and tutorials (both text and videos) out there,
    I'm unaware of a "complete guide" (which would be quite impressive given how many things you can do with Fusion! )
    there are some books you can check out, you'd have to search for them though,
    and there are online wikis (clickwiki and the library)
    there's the "help" funciton inside Fusion itself, explaining most of its functions
    this forum is a very very large source of informations (sometimes "googling" for answers gives better results than the search function you find up there)
    and there's the Technical Manual collected by Nivram:
    https://www.castles-of-britain.com/mmfexamples-misc.htm
    and more and more,
    perhaps some other forum member can add other detail on this

    Your latest request is doable with "timer" events, try to experiment and you'll likely get to a solution
    (if not, no worries and come back here )

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Pointing towards the cursor
    By DemonD in forum Fusion 2.5
    Replies: 9
    Last Post: 18th July 2014, 02:51 AM
  2. [URGENT]Pointing In Direction of mouse
    By duelninja137933 in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 8th April 2014, 12:34 AM
  3. Pointing at a unit
    By tompa in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 27th April 2013, 05:29 AM
  4. Launching Arrow in Pointing Direction
    By Merrie in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd January 2011, 02:40 PM
  5. Pointing to an object
    By Brandon in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 6th June 2007, 01:51 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
  •