collision health setup in gamemaker studio 2

Collision and Health Setup

Tutorial 10: Collisions and Health Setup In this tutorial, we will learn how to setup your player and enemy health and how to destroy them based on some collision rules. Set the player collision mask Go to the Resources menu: Open Sprites. Open your player sprite, sprPlayer Find Collision Mask in the Sprite window. Open this area by clicking the small arrow beside the words In the Collision Mask area, from Type, choose Precise (Slow) Setup player health Open the player object, objPlayer, from the Resource menu Go to the Create event and add the following code: myLives = 3;

******************************************

The remainder of this content is restricted to site members.
It is free to join.
New users please register below.
If you are an existing user, please log in.

Existing Users Log In
   
New User Registration
*Required field

Similar Posts