
Hotline Miami Remake in GameMaker Studio #13 - Weapon cycle
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)
Other Videos By 1up Indie
Other Statistics
Hotline Miami Statistics For 1up Indie
1up Indie currently has 40,089 views spread across 19 videos for Hotline Miami. His channel uploaded 4 hours worth of Hotline Miami videos, or 4.53% of the total watchable video on 1up Indie's YouTube channel.