Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: Andrew Stockton on June 05, 2006, 08:07:51 PM

Title: Shooting objects
Post by: Andrew Stockton on June 05, 2006, 08:07:51 PM
Ok, you know how in some RPG'S, you can get a gun or shoot energy out of your hand or something? I know how to do everything except make it actually hit something. I think it has something to do with variables and the hero's (and enemy's) x and y-coordinate. Does anyone know how to do this?

                               
Title:
Post by: ZeroKirbyX on June 05, 2006, 08:22:47 PM
Any reson you posted a generated face?
Title:
Post by: WarxePB on June 05, 2006, 08:29:37 PM
1. This should probably be in RM Programming.

2. If you want a signature or avatar, click the "Profile" button near the top of this page.

3. Simply put, get the X and Y coordinates of both the monster and the projectile, and use two seperate Conditinoal Branches to compare them. If Monster X and Projectile X equal each other, and Monster Y and Projectile Y equal each other, then the monster is "hit".
Title:
Post by: Razor on June 05, 2006, 09:48:21 PM
Moved!