Adventure game
Blitz3D Forums/Blitz3D Beginners Area/Adventure game
| ||
I am writing a 3d adventure game in which the player wanders around caves and has to pick up objects. I am using the camera to represent the player and had to solve the problem of how to pick up objectswithout a visible character to be seen picking them up. I decided to use entity distance. When the entity distance between the camera and the object is less than 3 the object disapears ( hideentity) and the got_ibject flag is set to true. Has anyone else solved this problem in another way? I am not yet advanced enough to do a Lara Croft type of hero. |
| ||
EntityDistance is a good way of automatically picking things up that the player is near.. If you want the user to say, right click the mouse on the object they are looking at, then use EntityPick. |
| ||
Might want to free the entity if it's not gonna get used again :) But entitydistance is very good way to do it :) |
| ||
I agree, but don't worry about making it first-person, I enjoy those games a lot more. I think having a character makes the player an observer rather than a participant in the world. That's just my personal opinion. |