GMS 4.1: How to Collect, & show a Custom Effect?

Channel:
Subscribers:
268
Published on ● Video Link: https://www.youtube.com/watch?v=A5YHIV_AAYU



Duration: 0:00
16 views
0


GMX File: https://www.dropbox.com/scl/fi/usf83by1nr5nh3k7qmggb/player_collect3.gmx.zip?rlkey=yjlsc91t8sbdlflh7zux1zi0f

1. Import Images of Player and Effect into Game Maker Studio, shown here.

2. Make sure Width 293 and Height 360 is the same for Player and Effect, so Player and Effect images line up when collecting the item. This will prevent a jump in images. Also make sure Origin for X and Y are the same for Player and Effect, both are Centered 146, 180

3. This Effect will only last for 3 seconds due to the animation shown here, once the Alarm counts down to 0, the Effect will be Destroyed.

4. The running speed is set to 25, due to the animation.

5. Collision with case, Actions: Destroy Instance, Other, do not set it to Self you will destroy yourself. Next Create Instance, Object: effect, set to Relative this means the Effect will happen at the center and location of the case, since the case is centered too for Origin, shown here.

Coming Soon: https://mc-game-zone.wixsite.com/mc-game-zone/coming-soon-01-1