Quote:
Originally Posted by x2495iiii
That one's harder to do. Much much harder. Dameria's the only guy to ever get tangible, large-scale results, and that was from several hours of work. Basically its boiled down to putting a bunch of squares on every surface you don't want the character to run into, then have a constant string of if/else if statements which check to see if the character is in front of those square and pushes him back if he is. The terrain thing can't be helped, as far as I know.
If you want more info on his method, search his posts or just ask him.
|
x2495iii, I don't know if you saw my other game before, but I basically put all the collide-able items into an array (or list, I forget) and ran each item through a method of some sort to see if the "character" was colliding with any of the items in the array.