O'Reilly logo

Construct Game Development by Daven Bigelow

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — adding some guns

Our players will need some tools to fight off any enemies we add later. Let us do this by adding in guns and bullets for them to use.

  1. In the Layout Editor, select the Objects layer and create a sprite named PistolShot and paste the pistol bullet into it. Give this sprite the Attribute of Destroy on startup and a Private Variable named Damage with value 22.
  2. Now set the Collisions mode to Bounding Box and add the object to a new family called Bullets.
  3. Add the Bullet behavior and give it settings to match the following screenshot:
    Time for action — adding some guns
  4. Clone this object and call it UziShot. Paste the uzi bullet image into it, set the Damage ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required