У нас вы можете посмотреть бесплатно Create Dynamic Combat with Health, Knockback, and Destruction in Game Maker Studio 2 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
In this comprehensive tutorial, we're diving into the world of enemy combat and destruction within Game Maker Studio 2. The video provides a step-by-step guide on how to implement a robust system that handles enemy damage, visual feedback, and ultimate destruction. We begin by setting up essential variables for knockback [00:04], which are crucial for creating a dynamic and engaging combat experience. The tutorial then moves into the core mechanics, showing you how to set up an alarm event that controls the enemy's recovery after an attack [01:36]. This is a vital component for preventing enemies from being stun-locked. A key part of the process is implementing proper collision detection [02:00] between the player's attack and the enemy. Without this, the damage system would not function. Next, you will learn how to reduce the enemy's health points (HP) and provide instant visual feedback by changing the enemy's color to red when they take damage [04:08]. This visual cue is a simple yet effective way to communicate with the player. The knockback effect is further refined with the use of the sign function [05:04], which intelligently determines the direction of the pushback based on the positions of the player and the enemy. The ultimate goal of this system is enemy destruction, and the video shows you how to program an instance to be destroyed when its HP reaches zero [05:31]. A test run is performed to showcase the completed system, demonstrating how the enemy takes damage, gets knocked back, and is destroyed after a few hits [07:41]. The video concludes by teasing the next steps in the series, which will involve applying a similar damage system to the player character, setting the stage for more advanced gameplay [08:13]. #gamemaker #gamedev #tutorial #indiedev #gamemakerstudio2 -- Video Chapters -- 00:00 Introduction 00:19 Why we work with the parent obj 00:33 Knocking the Back when Attacked 02:03 Blending a Color with our Sprite 02:35 Removing an Enemy from the Game 03:39 Checking for a Collision 06:57 Formatting of your code 07:37 Play Testing 08:13 What's Next