The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: Lntreis on December 19, 2010, 03:26:06 AM

Title: HELP: Projectiles
Post by: Lntreis on December 19, 2010, 03:26:06 AM
Ok, first of all, I am using Rpg maker XP.
So basically I want to make my character be able to use a gun/bow or anything that shoots projectiles to kill enemies. I might have overcomplicated things a bit but here is what I did so far:

I created an invisible event whose position is always under my character and when the action key is pressed, it "shoots" the event in whatever direction I am facing and gives it the appearence of a bullet.

The enemy is in parrallel process and checks the position of the bullet to see if it is hit by it. If it is, then it disappears.

This part works fine so far, however the problem is that I also want the enemy to kill my character if I touch it directly. Basically, I want it to something when it collides with the hero. The problem is that since the event is already set in parrallel process, I have no idea how I am supposed to do that.

I've tried to make a conditional branch with a script as the condition that would check if the position of the hero is equal to the position of the event to mimic the event trigger but I am absolutely bad at scripting so I couldn't do much.

Help would be greatly appreciated ;)

PS: I am using a french version of rpg maker xp so some of the actual terms might be different from those I used^^
Title: Re: HELP: Projectiles
Post by: DarkMessiah on December 19, 2010, 03:28:01 AM
Well if you want to shoot arrows at enemies for combat, I could recommend BlizzABS, which puts all battles on the map. If you just want it for specific parts, not sure how to help you. But i recommend BlizzABS
Title: Re: HELP: Projectiles
Post by: Grafikal on December 19, 2010, 03:46:49 AM
Agreed. Combat systems are the most complicated things to event and are way better handled as scripts unless it's like a very simple combat system. Any ABS would do you good. I would assume BlizzABS, it's the only one I ever hear people using for XP.
Title: Re: HELP: Projectiles
Post by: Lntreis on December 19, 2010, 03:48:12 AM
Ok thank you, I'll try that.