The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsHello!
My question will be much easier to explain with a little sample of my game:
http://www.newgrounds.com/dump/item/6839 bbe7ecde21cfc730320cb080a139
(you walk with W A S D)
I was wondering is there is a simple way to make the enemies (the red little blobs) to move if you walk thowards them. Right now the player walks OVER the enemies, which is not what I want. I would like the enemies to get pushed back if the green Player with helmet walks towards them and collide. I was thinking about some idéas but non of them work.
Is it any simple way?
Check out the coolest Donkey Kong Game on NG!
http://www.newgrounds.com/portal/vi ew/459064
100 posts @ Posted at: 9/15/08 07:36 AM http://www.newgrounds.com/bbs/topic /969232
Just give a look in your game. Are only angles, trigonometry. Looks like you're copy and pasting codes from some tutorial because the only thing you need is just what you're doing with all the other things. Just invert the angle, you can use *-1 to it. Moving towards them is just measuring to get same angle both in x and y.