Game Creator
  • Welcome to Game Creator!
  • Quickstart
    • Get Started
    • Setup
    • Tutorials
  • Game Creator
    • Game Creator
      • Actions
      • Conditions
      • Triggers
      • Hotspots
      • Characters
        • Player
        • Markers
        • Gestures
        • States
        • Advanced
          • IK in custom Animations
      • Camera
        • Camera Motors
      • Variables
        • Global Variables
        • Local Variables
        • List Variables
    • Systems
      • Localization
      • Event System
      • Timeline
      • UI
      • Module Manager
      • Game Creator Toolbar
      • Pool System
      • Game Creator API
        • Custom Actions
        • Custom Conditions
        • Custom Triggers
        • Custom Hooks
        • Custom Save & Load
        • Variables Access
        • Custom Module
  • Dialogue
    • Dialogue
      • Anatomy
      • Actors
      • Dialogue UI
      • API
  • Inventory
    • Inventory
      • Inventory Window
        • Catalogue
        • Recipes
        • Types
        • Settings
      • Merchants
      • Containers
      • Loot Tables
      • Equip Items
      • Actions
      • Conditions
      • Custom Inventory UI
  • Quests
    • Quests
      • Quests Overview
      • Create Quests
      • Quests UI
        • Custom UI
  • Stats
    • Stats
      • Stats Overview
        • Stat
        • Attributes
        • Status Effects
        • Formulas
        • Stat Modifiers
      • Stats UI
      • Common Use Cases
        • Simple Health Bar
        • Regenerative Mana
        • Poison Status Effect
        • Levels and XP
        • Strength and Armor
        • Lockpicking
  • Behavior
    • Behavior
      • Behavior Graph
        • Nodes
        • Blackboard
      • Perception
  • Shooter
    • Shooter
      • Weapons
      • Ammunition
      • Interaction
      • Examples
        • Example 1 - Get Started
        • Example 2 - Pick Weapons
        • Example 3 - Top Down
        • Example 4 - Side Scroll
        • Example 5 - First Person
        • Example 6 - Combat
      • Advanced
        • Custom Crosshairs
        • Shooter API
  • Melee
    • Melee
      • Weapons
        • Blade Component
      • Shields
      • Melee Clips
      • Combat
  • Traversal
    • Traversal
      • Obstacles
      • Climbables
      • Built-in Elements
  • Annex
    • Roadmap
    • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. Shooter

Shooter

From Pew-Pew to Ka-BOOM!

PreviousPerceptionNextWeapons

Last updated 5 years ago

Was this helpful?

Welcome to the Shooter module guide. This is a rather complex system with many configuration options, which allow to create from a top-down perspective shoot 'em up like Hotline Miami to third-person adventure games like Uncharted or Tomb Raider.

Download the module

Overview

There are two main objects in the Shooter module:

  • Weapons: A configuration object that lets you define how a weapon is handled, which prefab is used and the States in which the character will pose when aiming with a particular weapon. Requires an Ammo object linked.

  • Ammo: A configuration object tied to a weapon that defines how a particular ammunition type works, including the effects of shooting, charging a shot or whether it uses a crosshair, a visual trajectory, ...

IMPORTANT!

Do not duplicate or modify the Weapon and Ammo objects that come as an example. Updating the Shooter module will overwrite your changes. Also, duplicating them will result in keeping multiple-references between the original object and the duplicated one. Always create a new Weapon and Ammo object from scratch.

We're working on a solution.

To transition between different states you'll need to use the corresponding Action. If a Character tries to shoot when it's in a state that doesn't allow to shoot, the system will simply ignore the command.

Using a FSM is very useful, as you can create an AI that constantly tries to shoot at the Player as soon as the enemy sees it, without needing to worry about synching times when aiming, drawing the gun, etc...

Here's a quick example on how to make the Player draw the Sniper Rifle weapon that comes with the Shooter module when the user presses the E key.

Disclaimer: This is just an example. You can decide how to trigger the drawing of the weapon, whether that's an automatic event as soon as the Player enters a zone, pressing a particular keyboard key or even as soon as the game starts. It's 100% customizable!

Check the and pages for more details about the options they offer.

The Shooter module works as a that follows the rules of the diagram below. For example, a Character can not shoot unless it's armed and aiming.

Weapons
Ammunition
FSM
Shooter
(Toggling between pulling a gun and holstering it when the user presses the E key)