A downloadable asset pack

Buy Now$1.99 USD or more

This Asset is ONLY for Game Maker Studio 2.3+.

This project contains a series of functions designed to generate an ordered list of all targets with a given parent object. This list can then be scrolled through to select any of the given targets and "lock on" to them. If a target leaves the given range or is destroyed, the scripts will update the list again and target the next nearest, or it will select the next one on the list and find another target to add (this behaviour can be changed). Multiple instances can have target lists so you can have multiplayer games or AI using the same system.

Features

  • Multiple simple functions that do all the work
  • Easy setup - Simply use the two supplied "base" objects
  • Easy customisation - Set range, list size, draw options, update speed etc...

All functions are called from a single object and can be easily added to a player or an enemy object later. The PARENT object must be used for all objects that you wish to target and should not be changed.

The included demo project contains two folders of objects in the resource tree. The BASE objects are the ones you should be using in a real game, and the DEMO objects can be removed. Note that the demo objects hold a lot of information in the form of comments so take a moment to read through them before removing them from the file.

Included with this project is a script from GMLScripts, which you can find here: http://www.gmlscripts.com/script/instance_nth_nearest

GMLScripts licence can be found here: http://www.gmlscripts.com/license.txt

Purchase

Buy Now$1.99 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $1.99 USD. You will get access to the following files:

com.nocturnegames.targetsys.yymps 138 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.