Hungry Hal is getting rather close to completion and I am squashing some bugs, but this one has me stumped.
They way the code should work is when a box or tire is spawned it spawns an invisible block called humanMove. When an object from the People family is overlapping humanMove, it should move the object depending on a few conditions I have laid out.
Now this works, a lot of the time, however it's not 100 percent accurate as I demonstrate in the screenshots.
This image you can clearly see the two collision boxes overlapping. Not to mention I caught the tail end of it, the People object is moving from left to right, so it ran completely over the entire humanMove object.
<img src="http://www.elf-games.com/bug/combined.jpg" border="0" />
These two screenshots show the properties for the humanMove instance and People instance.
<img src="http://www.elf-games.com/bug/humanmove.png" border="0" />
<img src="http://www.elf-games.com/bug/people.png" border="0" />
Lastly is my code.
<img src="http://www.elf-games.com/bug/code.png" border="0" />
I'm not sure if the collision event is even happening or not. Is there a way in the debugger to determine that?
I have also tried it with on Collision, same results. I have also tried it with humanMove set to visible and it still happens. I'm missing something, and it's probably something little and I am not seeing it :).
Thanks
Ed