Sean @ Tue Apr 29, 2008 2:43 pm wrote:
There are different ways to make boundaries. And it isn't View.WhatDotColor, it is whatdotcolor.
whatdotcolor is collision based on the colour of something, however you can make your own boundaries by comparing player x and y values with object values too.
There is a tutorial I believe already made.
Your post is seriously wrong there.
- First of all they do the exact same thing.
- Secondly You should not use whatdotcolor instead of View.WhatDotColor. Why? This is because this tells us we are using the whatdotcolor function that belongs to the View module rather then just having a function that is called whatdotcolor.
On a side note while whatdotcolor collision is a simple concept (information is located
here), it should be avoided. Graphics and the game engine should be independant of each other (A better alternative located
here)