User Tag List

Results 1 to 3 of 3

Thread: Need help with shooter.

  1. #1
    No Products Registered

    Join Date
    Dec 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with shooter.

    Well I'm making a shooter, and I need help...

    1. How do I make a bullet shoot from the player and in the direction of the cursor?

    2. How would I make the arm with the gun rotate where I'm aiming?

    3. How do I make the head rotate so the guy looks up and down when I aim up and down?

    4. How do I make the player change the direction he's facing according to where he's aiming (if the cursor is to the left of the player, his body is facing left, and vice versa)

    Thank you for the help!

  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)

    Re: Need help with shooter.

    I tried to answer as good as I could. If there are something you don't understand, please ask.

    1)

    First make a new active object and name it Cursor.

    Then make these events:

    * Always
    - set xpos of Cursor to XMouse
    - set ypos of Cursor to YMouse

    * When player presses the shoot button
    - Gun: Shoot Bullet towards Cursor


    2)

    Well, you COULD make rotated animations for the arm object and make the arm always look at the Cursor object.

    But a better, though slightly more complicated method is to use the Angle actions

    You need to use the Clickteam Movement Controller object to calculate the angle. Place it in the frame editor and then go to the event editor.

    * Always

    That is the condition. For the action, select to set the Arm's angle. Now the expression editor pops up. You want to retrieve data from the Clickteam Movement Controller, so click on 'Retrieve data from an object' button and right click the CMC object. From the popup list, select General expressions / Get angle between two objects.

    The syntax for this is
    AngleObjects( "Clickteam Movement Controller", >fixed value<, >fixed value<)

    Now replace the first >fixed value<b with the arms fixed value. Do that by simply retrieving the fixed value from the arm, the same way as earlier. Do the same for the second >fixed value< but this time retrieve the fixed value of Cursor.

    If this sort of works, but the angle is wrong, try adding +90 or -90 at the very end of the expression. Play around with it.


    3)

    If you understand what we did in the previous event, this would be piece of cake.


    4)

    This is very simple.
    First make sure that the playerobject has both a left and a right animation.

    Then make these simple events:

    * XMouse > Playerobject
    - Playerobject: Set direction to ->

    * XMouse < Playerobject
    - Playerobject: Set direction to <-





  3. #3
    No Products Registered

    Join Date
    Dec 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need help with shooter.

    I understand t for the most part, but I'm kinda new to MMF2, so it needs to be a little more specific. Like I did the thing to shoot bullets at the cursor, but how do I actually make a visible bullet? Thanks for the help though.

Similar Threads

  1. 360 shooter
    By Evilized79 in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 14th November 2011, 08:26 AM
  2. Shooter Aim problem
    By EdibleWare in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 31st October 2011, 02:40 PM
  3. 2d shooter help
    By okonz in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 13th December 2008, 09:13 PM
  4. Shooter AI
    By JoeText1 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 23rd November 2008, 01:03 AM
  5. Problem with 360 shooter
    By Pancra in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 12th October 2006, 09:01 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
  •