Attack effects make the game more enjoyable
When a player presses the key, the robotic fighter on the screen hits the out-of-control robot with his fist. At this time, what the designer needs to do is to reward the player with cool sound and visual effects for completing a wonderful action.
Attack effects are very important in games, especially in action games. When players overcome difficulties and complete an operation, they need some positive feedback to maintain their enthusiasm for continuing the challenge.
Taking the game demo Dizziness as an example, the following two videos show the difference in experience with and without effects. You can find Dizziness in Recommended Templates of Gandi IDE.
When using Gandi IDE to create a game, you can use the Quake extension to add cool attack effects to the game.
Let's take a look at how to do it.
Prerequisites
You need to install the Quake extension in the extension library of Gandi IDE.
The Quake extension provides various effects, among which the most suitable for making attack effects are Shake, Shockwave, and Glitch. For a detailed introduction to the Quake extension, please refer to this document.
In addition, you need to have a simple understanding of Broadcast in Scratch. You can learn from Scratch's official Wiki.
Step-by-Step Guide
Step 1: Broadcast a message when launching an attack.
Developers may have many ways to implement attack action. You can add a broadcast message to the script that implements the attack action, and play the attack effect when the message is received.
For example, in Dizziness, the script for the attack action is in the Character//Hero character. Add the broadcast message block to the script that implements the punch action, and broadcast the punch message.
Step 2: Play the effect when receiving the message.
When the message is received, play the effect. Find the effect block in Quake.
For example, we use Shake as the attack effect. The script is like this.
You can modify the parameters in the block to adjust the effect. For example, punch action is used to attack enemies horizontally, so I changed the direction of the effect to only x direction. Then adjust the decay value to make the effect last a little longer.
The effect changes like this.
You can also switch the effect to Shockwave or Glitch.
For an introduction to these effects and their parameters, please refer to this document.
Bonus: Add sound effects.
With visual feedback, you also need to add sound effects. In the Assets Marketplace of Gandi IDE, there are a large number of sound effect assets. Pick appropriate sound effects and add them to your game.
Note
Adding effects needs to be moderate
Appropriate effects can make the game more enjoyable. Too many effects may destroy the player's experience. Developers need to remember to add effects in key places with restraint.