Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Sprite Collision Help

Author
Message
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 26th Feb 2011 23:38 Edited at: 26th Feb 2011 23:39
I'm probably terrible at all of this lol, but I would like some help. I want my zombies to just not run in to each other. I have the collision function returning correctly, I just don't know exactly how to position them so they move correctly with their angle so they don't overlap another zombie. Any help is appreciated

main.cpp


zombie.h


zombie.cpp


player.h


player.cpp


Dev team portal Email me to join the dev team!

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 28th Feb 2011 00:02
Bump

Dev team portal Email me to join the dev team!

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 1st Mar 2011 04:00
Here's the updated for loop with player collision and zombie to zombie collision. But Im still confused on how exactly to change a zombies coordinates to just "move it out of the way" so its just not on top of another zombie.



Dev team portal Email me to join the dev team!

DeadTomGC
14
Years of Service
User Offline
Joined: 11th Aug 2010
Location: LU
Posted: 13th Mar 2011 05:47
Would It not work just to make the zombies position themselves either to the left or right of the zombie that each hit?

Login to post a reply

Server time is: 2024-11-19 12:23:23
Your offset time is: 2024-11-19 12:23:23