So I'm trying to make a game that has a very Legend of Zelda/Secret of Mana type combat system. I feel pixel movement is very important to accomplish this I feel but the better pixel movements seem to break the ABS plugins I like. I've recently been told that it's possible to create a common event to accomplish at least the basic sword swing functions and even included a demo of this and I was wondering if anyone could just give me a basic example of how this kind of thing could work? I think with a basic example giving me the overall idea I could probably figure out how to do the rest of what I need as the main things I'd need to figure out would be
A) How to animate the swing
😎 How to make the swing interact with other events
C) How to get monsters to create these kind of attack events that'd interact with a player
Anyone able to give me a starting point?
For reference I'm trying to use Altimit's Pixel Movement. If there is an ABS that functions with this I wouldn't object but either way would be nice to learn more about the eventing system.
I am also trying to make a game like this! Comment is a bit long, but here is my two cents 🙂
TLDR: Most action things we try to get working in MV end up failing due to the way and timing that MV handles on-the-map event processing. Practically, this results in broken or laggy gameplay that is not fun and naturally leads to looking for ABS plugins. First off, your questions:
A - In the Animation settings, I messed around with the existing animations and made a little 15% scale version to play in front of the character.
B - I don't know, so all my attempts have the player in front of the enemy so it can react on 'touch' or with a normal action button input.
C - No idea without using an ABS, mines react to touch so no AI needs to be programmed for attacking.
Very basic stuff is possible as long as you're not trying to get too many processes to happen at the same time.
For example I made a simple 'Dash' command that is just some basic Move Event stuff in a common event, triggered by Yanflys Common Button Events. Ups the movement speed, chucks you along 2 squares, turns everything back to normal - giving you a little burst along. You can use this with jumping also (Smart Jump is good for this).
I love pixel movement plugins, I really do - but I think they just add another layer of difficulty with the combat - how they handle collision can have unexpected results depending on what you try.
This is why they break the ABS systems - they are both speaking different languages when it comes to collision. So i'd recommend trying to figure it out without pixel movement first, then bring it in once you have something usable.
The sword swing is a basic action to think of, but a trickier one to pull off in MV.
If its not on stationary/non-combat objects, there is more to process than you might first think. When you can't get this to work, you naturally start looking for ABS plugins. This is a stumbling block for you, me and plenty of other people. We are trying to use a program for something else than it was intended for after all, but it feels like you are closer than you are with the top-down graphic style being there already.
My real issue is the timing of the event processing. If its map based combat you need to process: if you're attacking, if the enemy is there/defending, that the enemy is not also attacking - who can attack over who or who attacked first and so on and so on.
I love trying to do stuff with only events in MV, it forces you to think with just logic and the tools you have. Making a super basic fishing system was a really fun one to do. I did not manage to fully make ABS style combat though because of how much you end up having to process.
Here is an example of my run-in with trying this:
Make it simple: one button to attack, enemies damage you on contact (they don't run an 'attack' command). Set them to wander after the character.
I ended up with all the processing happening through Common Events, started within the enemy event. I used HIMEs multiple event start conditions so I didn't have to choose over 'Player Touch' or 'Event Touch' with the enemies.
So the enemy event first checks to see if its touching the player or if the player has pressed the attack button in front of it. (leaving ranged out of it for now)
If it touched the player - flip Self Switch A - When flipped: do some damage to player, bounce them back a square and the enemy runs away at higher speed for three squares and then turns off Self Switch A - goes back to being on patrol.
If the player was pressing attack first - flip Self Switch B - the enemy takes some damage (using a Variable for this since we are not in the battle system) - bounces back a tile - runs away for three tiles - then turns off Self Switch B -goes back to being on patrol.
I had to have this kind of 'knockback' effect in place because if you don't it's a choice between: you or the enemy insta-killing each other or trying to use MVs wait functions for real time combat. Both are unpleasant. Either way you are fighting the engine to get a non-optimal result.
Even with that in mind, in my system you can just walk at the enemy with the attack button held the whole time and it will prioritise the player over the enemy 100% of the time, taking out all the challenge. Even when it kind of works, there is a noticeable delay as the engine churns out what it thinks should be happening.
Bear in mind that, in the end, we are just trying to do stuff 'on the map' and there are a ton of plugins that can expand MV without committing to a full on ABS that is way too extreme for the basics. HIME and Galvz have some great work you can use. Yanfly of course always has something to help, CommonButtonEvents gets used all the time. Stuff that is meant for puzzles/move routes/animations can all end up doing something you need even though they are not full on 'Action' or even combat plugins.
So I don't really have a concrete answer, but starting point wise:
- Keep it simple. (or MV will freak out)
- Make use of Self Switches for 'behaviours'
- Try basic actions first (platform stuff/stationary objects) and build from there
- Try other plugin combos that aren't exclusively ABS related.
Hope that was helpful, let me know if you found anything cool that works! :ehappy:
Before I settled on MOG Hunter's Chrono system, I had a pseudo abs going using:
Eventing (natch)
Yanfly button common events, movement route, and self switch variables
And Galv's map projectiles.
Regardless of the method you use it's going to get complicated. Go slow, learn eventing thoroughly, and experiment over and over. Don't allow frustration to overwhelm you.
Also regardless of your method... you WILL need to do some spritework, as the standard tight 48 by 48 block character sheet will not allow you to animate melee swings.
Edit: forgot to add, the post above me is an excellent start.
My game Eremiel cobbled together a custom ABS using Galv's Map Projectiles and also his Pseudo Pixel Movement. While my game doesn't have sword attacks, they probably wouldn't be difficult to implement. You would have to disable the minimum projectile distance in the plugin's code, though.