PDA

View Full Version : shooting game


rpgfanatic
03-23-2008, 03:51 PM
Hey, I want to make a shooting game In RPGM2. However, I just can't seem to figure out how to make the "bullets" affect the enemies. For example, I want to set it up to when the player presses SQUARE, (depending on his selected weapon) a projectile flies out. If an enemy is in range and in front of the character, the enemy will take damage. How can I make the projectile interact with the enemy event?

Sorry if this is a little unclear, but I could not find another way to explain what I want to do. Thank you for your help!

Dungeon Warden
03-23-2008, 04:12 PM
You can't make the projectile interact with the event, all you can do is check if the event is in range of the bullet and have the event react accordingly.

The load event data command will allow you to check the event's direction and distance from the party and Game Info : load will let you check the party leader's direction when they fire. The bullet would be a VFX.

Cr4200
05-23-2008, 12:32 AM
you can also use the Event:X,Y,Z and Party: X,Y,Z variables to determine the range/accuracy with a condition branch
for example: If Party: X = Event: X then the event takes damage
this goes along with the Part: Dir variable as well

rpgfanatic
06-04-2008, 12:18 PM
you can also use the Event:X,Y,Z and Party: X,Y,Z variables to determine the range/accuracy with a condition branch
for example: If Party: X = Event: X then the event takes damage
this goes along with the Part: Dir variable as well

Yeah, I just tried that, thanks! One thing, though...should I use the "check for damage" script on the enemy event and use a flag, or should I check the condition with the sqare button event (I wanted to use the square button to shoot)? Thanks again!