Announcement

Collapse
No announcement yet.

shooting game

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    shooting game

    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!

    #2
    Re: shooting game

    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.




    The Crown of Order demo is here.

    Comment


      #3
      Re: shooting game

      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

      Comment


        #4
        Re: shooting game

        Originally posted by Cr4200 View Post
        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!

        Comment

        Working...
        X