I am a Blender n00b, I have worked with VRML to try to realize a Myst inspired puzzle/exploration type game, but it is just too limited in functionality and allowing the player to look around etc. So I am recreating it in Blender.
I am using the Walkthrough demo I found (I forget the URL), it is a first person camera apparatice(?sp) that allows the player to look around by pressing the left mouse button down and moving the mouse. When looking around, the mouse pointer is invisible, but returns when the left button is released.
I would like to start basic. Simply allowing the user to click on items (very original Myst style), eventually I will try pulling switches etc by click and moving the object.
How would / could I allow the user to click on objects within my game ‘world’? The distance does not matter, I was thinking, if the player is within a certain distance from the object it can be clicked. So if the camera is near enough, and the left mouse button is clicked while the pointer is over the object, it needs to be ‘clicked’. If this is possible, is the logic/script housed in the object itself? I do not want to have to manage this from within the camera’s mouse events if I don’t have to, because then I would have to know all of the existing objects - rather than requiring only the object to ‘know’ its own clickable functionality.
I hope that makes some sense.
I have not found any tutorials etc on this yet. Even if you could just point me in the right direction that would be great!
Thanks in advance!!!