Well, I'm making a team-based game, and in it I use the mouse as the target basically, clicking where you shoot.
Though, there's one problem, i.e. I don't want the character to be able to shoot behind them. Just directly to the side coming inwards to directly in front, but I'm not sure how it'd work.
Oh, and does DM have anyway of creating 'transparent colours/colors' (E.G. the bullet-dodging from 'The Matrix', or an after-image as in Dragonball?)
ID:177134
Oct 26 2002, 9:19 pm
|
|
if(get_dir(src,M) == src.dir || turn(src.dir,45) || turn(src.dir,-45))
But that's psuedocode. Use the turn() proc.