GameMaker (2.3)
Icon

Split Screen Cameras

YoYo Games

You must be logged in to obtain assets

Description

This demo shows a simple two player "split-screen camera" top-down arena shooter style game, complete with screen shake special effect. The demo contains lots of comments to help you understand what's going on, and we would encourage you to read these and play around with variable values in order to extend the demo and really learn the techniques used.

These include:

  • Two players (a blue ship and a red ship) which are controlled independently via one keyboard.
  • Enemies spawn at random locations in the room in timed waves.
  • Players can shoot with two different bullet types - one of them coming from a pickup spawned in the game.
  • Points are scored by killing enemies.
  • The game restarts if either player is touched by an enemy.
  • Both player ships have their own viewport and a camera assigned to them, and the views will follow each player ship independently.
  • Whichever player kills an enemy will get a small screen-shake effect whilst the enemy explodes and plays a sound effect.
  • The two player ships inherit common functionality from a parent object.
  • Object variables are used throughout (these are also documented in each object's Create event).

!! Please note version 2.3.1 of this asset requires the GMS2 2.3.2 IDE or newer in order to be able to import it from the Demos button on the Start Page. If you are still using 2.3.0 or 2.3.1 you will need to import it via Marketplace > My Library. !!

More info

End User Licence Agreement (EULA).

Age Rating: 4+

Versions

GMS2 - Version 1.0.0. Published March 3, 2017

GMS2.3 - Version 2.3.1. Published April 13, 2021

Large refactor of the demo:

  • Removed a couple of redundant assets and fixed a few coding mistakes
  • Lots more comments added throughout and made a lot of the variable names more friendly so the demo is easier to understand
  • Also sorted the asset browser list to be in a "by entity" style suited to 2.3.0+, rather than the traditional "by asset type"
Privacy Policy
Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait