This is the 13th video in a series on remaking Hotline Miami in GameMaker Studio.

The video tutorial shows you how to setup a weapon pickup cycle. You basically have a pickup instance which holds the weapon type (sprite) stored, which in case of getting picked passes that information onto the player instance. The player can now by pressing the right mouse button throw that weapon away and nullifying its weapon holding status. By throwing an weapon throw instance the player passes the weapon holded into this instance, which will fly away from the player. At some point the fyling weapon throw instance will halt and will be destroyed and replaced with its hold values which are then passed into a fresh pickup instance. Here the cycle begins from start.

// music by 14BitAshren
Blonde Sunrise
https://www.youtube.com/watch?v=k_cxPC2p1F4

0:00 What we want to do +
0:52 Get the graphics and project on itch.io
2:08 Creating the weapon throw object
2:41 Create in the player object a throw instance
4:50 Setting friction and image_angle in the weapon throw object
6:28 Throw, pickup and equip life cycle explained
7:40 Setting condition when to destroy the throw instance
9:24 Player object weapon equipped variable
10:30 Starting weapon cycle in the pickup instance

Project + assets found here:
https://1up-indie2.itch.io/hotline-miami-clone-project-sprites

πŸ‘‘ Support me and get fresh game art and game maker projects every month:
https://www.patreon.com/1upindie

Follow me on:
πŸ“Έ Instangram: https://www.instagram.com/1upindie
🐦 Twitter: https://twitter.com/1upIndie
πŸ’¬ Discord: https://discord.gg/gvr98nb
πŸ“œ Udemy: https://www.udemy.com/course/become-a-video-game-developer-with-gms-23/ (See youtube about page for discount)

1up Indie

View all posts

Add comment

Your email address will not be published.