In Game Maker, I am trying to make it so that three instances of an object have three different sprites. Using DnD, what would be the optimal way to do this? If it helps, the three instances are different sizes and are in separate, fixed places.
To do this, you will need:
- 1 controller/administrator/creator object (
obj_Hadesin my project)
- 1 global variable (
global.numberin my project)
The controller object (
obj_Hades) will basically serve for you to declare the global variable (
Note that a sprite contains 3 images/frames:
In the controller object (obj_Hades):
Be careful to place the controller object to be initialized first (see lower left corner of image above).
In the object to have three different shapes:
Remember to set the
image_speed variable to 0, so that you don't run an animation.
If you have separated the images:
Just make use of
Test done with your project:
I deleted the 3 objects and added them again. I realized that the ones you had placed in the room were different sizes, I don't know where you modified them, but apparently that was the cause of the problem.