Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: zuhane1 on September 10, 2007, 02:46:39 PM

Title: How can I slash multiple panels?
Post by: zuhane1 on September 10, 2007, 02:46:39 PM
Sorry, I posted this on the tutorials section so here it is again.

I currently have an ABS, it works brilliantly, no lag, very fluent, not glitches, but one problem. When I hit an enemy, I have to get right next to it and touch it to kill it. The problem is, my slash animation should hit enemies far away and slightly around me, like a long sword swipe. How can I make this possible? Thanks in advance!

EDIT: Also a second question. I've noticed some people make events with second layer chipsets. When I try, it doesn't react to anything, is there a way round that?
Title:
Post by: DragonBlaze on September 12, 2007, 03:44:27 PM
First you need to know how to store event possitions in variables. So what you would need to do is set the location of the hero and the enemy in two variables (x and y possition for each). Once you know how to do that, set it up so that when you press the space bar you attack, when you attack, check to see how close the enemy is from the hero. For example, if the x and y possition of the hero is 160 and 120, then the x and y possition of the enemy is 160 and 104, then the enemy is one tile away from the hero. So basically when you attack, test to see if the enemy is withing the attacking range (withing 16 or 32) and if the enemy is, give it damage.

Learn how to store the locations of the enemy and hero in varaibles (We have a tutorial hanging around here somewhere for that), and once you do, if you need more help, I'll do what I can :)
Title:
Post by: zuhane1 on September 25, 2007, 03:12:31 PM
I understand... a bit... I'll give it a bash, thanks!