User Tag List

Results 1 to 10 of 10

Thread: how to make player pick up gun?

  1. #1
    No Products Registered

    Join Date
    Jul 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to make player pick up gun?

    how can you make your player pickup a gun?????? :blush:

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: how to make player pick up gun?

    Condition:
    player collides with gun

    Action:
    Gun turn flag 1 on
    _________
    Condition
    Gun: Flag 1 is on

    Action
    Gun set X-Y relative to player


    That is at the most basic level -- Enhancements to this are very possible based on how you design your game.

  3. #3
    No Products Registered

    Join Date
    Jul 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make player pick up gun?

    thanks im new at this!!!!

  4. #4
    No Products Registered

    Join Date
    Jul 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make player pick up gun?

    ok so make collision with player and gun turn gun flag 1 on x-y relitive to player i did it not workin

  5. #5
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    California, USA
    Posts
    1,247
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: how to make player pick up gun?

    example:

    www.skiosk-esd.com/clickteam/MMF2_examples/pickup.mfa
    DT
    Special Projects Director

  6. #6
    No Products Registered

    Join Date
    Jul 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make player pick up gun?

    hey buddy i cant get on your link!

  7. #7
    Clicker Fusion 2.5 Developer
    00J's Avatar
    Join Date
    Jun 2006
    Location
    Virginia, USA
    Posts
    1,510
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make player pick up gun?

    Do you want to know how to make a gun pick up?

    A little insight into how I make my games. This is from all of my engines to date!


    • Gun Object
    • Change Alterable Value A to Owned
    • Change Alterable Value B to Armed
    • Change Alterable Value C to Rounds
    • Change Alterable Value D to Clips
    • Create a Pick-up version of your Gun and add this code
    • Inside Gun Pickup Object Behavior
    • Group [ Start Of Frame ]
      • [start of frame : destroy gun pick-up object]
      • [Gun Pick-up collides with background : Bounce]
      • [Gun Pick-up Object has Movement Type : Pinball Movement]
      • [Set Pinball Movement to -Gravity 10- -Deceleration 0- -Move at Start checked- -Initial speed set to 30- Initial direction set to -32.32-]
        • Main Event Editor
        Group Handgun 001
      • Player Collides with "Gun Pick-up Object" : Set Owned to 1 : Destroy Gun Pick-up Object /you've just collected and added this gun to your player.
      • Upon Pressing "1" + Owned of Handgun = 1 : Set Armed to 1 /you can now activate the gun you previously collected by pressing "1"
      • Owned of Handgun = 1 + Armed of Handgun = 1 : Set Position of Gun to Position 0,0 of Players Action Point, In Direction of Player, Located, Oriented. Set Direction of Gun to Direction of Player.
      • Armed of Gun = 0 : Set Position of Gun "off screen"
      Shooting Gun
    • Owned of Gun = 1
    • Armed of Gun = 1
    • Rounds of Gun > 0
    • Upon Pressing "Control" : Create "Bullet" at 0,0 from Gun's Action Point, in direction of gun, Located, Oriented.
    • Create "Muzzle Flash" at 0,0 of Gun Action Point, in direction of gun, Located Oriented.
    • Play Sample "Fire"


    It gets even more complex than that and you can tweak this code in lots of different ways, which allows for reloading animations and variable rapid fire methods, but that should get you started in the right direction. Hope it's clear enough. [/list]

  8. #8
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    California, USA
    Posts
    1,247
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: how to make player pick up gun?

    Right click and Save As...
    DT
    Special Projects Director

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Aug 2006
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make player pick up gun?

    Quote Originally Posted by doggsox23
    hey buddy i cant get on your link!
    If your having problems with basic file saving, Programming might be a bit ahead of you.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make player pick up gun?

    You have to change the extension to .mfa after saving the file.
    EDIT: Or you can change the filter on the file selector to "All Files" and name it "pickup.mfa".

Similar Threads

  1. How to make the player jump?
    By Fizzypop56 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st August 2013, 12:27 AM
  2. how to make an 2 player game with two screens ?
    By devripper in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 8th August 2011, 05:31 PM
  3. Pick player
    By Taceo in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 21st July 2010, 10:36 PM
  4. How do I make my player swap from two places?
    By FlinkGigitty in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 14th January 2010, 12:46 PM
  5. How would I make my character pick up an object?
    By Krim in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 2nd March 2007, 01:22 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
  •