01-02-2010, 08:16 PM
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. ;)
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. ;)