User Tag List

Results 1 to 2 of 2

Thread: Need help with platform shooter

  1. #1
    No Products Registered

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

    Need help with platform shooter

    I've got all the levels and the game ready, but im new at this! so i need some help, i need my player to start with a certain amount of ammo and then be able to pick up more ammo. Anybody got the answer?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need help with platform shooter

    There are a lot of ways to do this - all of them involve setting up some sort of counter and using events to modify or check its contents. You could use a Counter object, an alterable value of your player, or a global value. I'll use a global value so that ammo is carried between frames, but the idea is the same for all of them.

    Set up a global value in the Application Properties, name it "Ammo" or similar, and give it a value to start off with. Then, when the player fires, subtract 1 from this global value. You'll also have to add the condition "+ Ammo is above 0" to your shooting event, to prevent the player from firing if he doesn't have any ammo.

    Pickups should destroy themselves when the player hits them and add an amount of ammo to this global value.

Similar Threads

  1. Tutorial Support for2D Platform shooter, Joints, 360* Mouse aiming. (multiplayer)
    By masterolive in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th June 2012, 06:56 PM
  2. 360 shooter
    By Evilized79 in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 14th November 2011, 08:26 AM
  3. Shooter AI
    By JoeText1 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 23rd November 2008, 01:03 AM
  4. Need help with shooter.
    By punch145 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th December 2007, 01:51 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
  •