Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cover System?
#1
I'm working on an action/shooter type game in RMXP. So far you can use a few differant guns and take down a couple of test dummies, run/strafe/melee, all that jazz.. My question is about creating some kind of cover system, or basicly make certain objects (such as walls/trees/people) stop the "bullet" so if you shoot at an enemy who's behind cover he won't get hit.
For anyone who hasn't worked on something exactly like this, I just have conditional events for the direction your facing and set the X and Y coordinates of the player and enemy events to seperate variables so I can compare them. If you're facing right the enemy's Y coordinate must be equal to yours and their X coordinate must be greater than yours in order to hit them, and so on for the other directions. This works fine in the open, but I can't think of a functional and practical way to create "solid" objects. Currently all the basic actions and such are pretty much functional except for the fact that you can shoot through absolutely anything to hit your target.. so I'd really like to fix this
I hope I was able to explain my situation and my problem properly. I was up all night working on it so now I'm like"Duuuuuuh." I should probably go catch some Zs but if anyone has any tips/suggestions/words of wisdom please feel free to share. If I need to go into any more detail or anything just let me know, I'll check back after my power nap and hopefully some cool dude will have solved this little riddle for me already. ;)
Reply }


Messages In This Thread
Cover System? - by thenix - 01-02-2010, 08:16 PM
Cover System? - by DerVVulfman - 01-02-2010, 09:19 PM
Cover System? - by PK8 - 01-02-2010, 09:39 PM
Cover System? - by thenix - 01-03-2010, 04:58 PM
Cover System? - by Lunarea - 01-03-2010, 05:51 PM
Cover System? - by thenix - 01-03-2010, 09:01 PM
Cover System? - by Lunarea - 01-04-2010, 01:50 AM
Cover System? - by thenix - 01-04-2010, 06:29 AM
Cover System? - by Lunarea - 01-04-2010, 07:19 PM
Cover System? - by thenix - 01-05-2010, 05:02 PM



Users browsing this thread: