Rpg maker mv action battle system3/31/2024 However, the checking of this, is dependent on the direction of the hero, so we need to handle each case separately. For the rest of the code, we now know that the player has hit the attack button, so we now want to make an animation showing that we are attacking, and then also checking if we actually hit something. ![]() If you want to use more keys however, it's important that you check the value of the key input after each key inputting process, so that you can trigger the correct event code. Notice that the value of this key, which is 5, will be stored inside the variable chosen, but since we only use one button anyway, we don't need to do anything with this value. In this simple example we will only use one key, the confirmation key, as the attack button. We put check the "wait until pressed" box, making sure that the rest of the event will not be executed before the player has pressed any of the keys checked. ![]() So the first thing we want to do with our event is to put a key input process there.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |