Description

Please Rate!

This asset is a must for any top-down shooter game.

With one line of code, you can easily calculate the required direction to intercept a moving target. All you need to know is how fast the intercepting instance will move (for example, the bullet), and the id of the target (the player). The uses of this script are endless. It is versatile and can be implemented in any game style for any purpose.

  • angle_to_intercept(sp, obj, adv)

OR

  • angle_to_intercept_ext(sp, xoff, yoff, obj, xoff, yoff, rel, adv)

The extra script adds a few more options to allow even more customizability. You can offset the start position relative to the calling instance and offset the target's position relative to its image_angle (or relative to room). Both scripts have the option to skip the full calculation and perform an approximation - this is still accurate at close range and will help make larger projects run efficiently.

All artwork design and animations are by artist Steven Kaule. Check out his website here.

End User Licence Agreement (EULA).

Age Rating: 9+

Version

GMS1 - Version 1.0.0. Published July 20, 2016

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait

Back to Top