I am trying to use Pick Object for my interface. However, my interface is inside a building. Whenever I call Pick Object, it keeps telling me I'm pointing at the building when I'm clearly pointing at the object (eg button) or AT LEAST the object behind it (Control panel).
Anyone got any gems on this one?
text 10, 30, "Pick Object at (x,y): " + str$(mousex()) + ", " + str$(mousey()) + " = " + str$(pick object(mousex(), mousey(), 0, 5))
Thats the line that does it..
This might sound stupid.. But what does the Start and End arguements do? I have set them to 0 and 5.. Yet they still pick up objects that are MUCH more than 5 units away..
Nick (PLEEEEEASE HELP!!)
PS: I have a gut feelign its to do with collisions.. Is there any way to tell it not to bother checking collisions on the building?