Partly thanks to the guys and gals at Answers.Unity3D.com, I solved the problem I had with the collision detection. It is essentially the same approach I already tried, twice, but apparently now I did it correctly. I have a two-dimensional array, in which every actor in the scene stores their position, and if a tile is occupied, no other actor can move onto it. When an actor leaves a tile, it is set to unoccupied again. I also used this array to create a boundary around the game world to keep the player and the enemies on it.
-
Recent Posts
Categories
Archives
- February 2017 (1)
- November 2016 (8)
- February 2015 (1)
- April 2014 (1)
- January 2014 (1)
- September 2013 (1)
- August 2013 (1)
- February 2013 (1)
- January 2013 (4)
- December 2012 (1)
- November 2012 (7)
- August 2012 (1)
- May 2012 (1)
- April 2012 (8)
- March 2012 (2)
- February 2012 (1)
- January 2012 (1)
- December 2011 (2)
- October 2011 (1)
- September 2011 (10)
- August 2011 (6)
- July 2011 (3)
- June 2011 (10)
My
Links
Ressources
Copyright © 2011 blog.piflik.de
Comments