Ok i am currently working on a first person "point & click" adventure game, similar to things like Myst and Amnesia : Dark descent and during the demo tests i was told it was best lo load up the rooms as players entered them, what would be the best way to do it?
Currently i have all of the rooms loaded and the procedure to go through is as such :-
// DOOR PROCEDURES
if object exist (303) // object 303 is a collision object that surrounds all doors
if pick object (mousex(),mousey(),303,303)>0
color object 303,rgb(12,13,0)
texture object 400,402 // texture the pointer to "open door" icon
else texture object 303,1 // Illuminate the door
endif
if pick object (mousex(),mousey(),303,303)>0 and pck#<11 and mouseclick()=1 //pck#= distance from door
move object 2,10 : position object 2, object position x(2),10,object position z(2)
endif
endif
now how would i go about knowing which room i was in? i'm pretty sure i couldn't use the above coding to do it and i probably can't have One object the covered ALL doors. would i have to make individual boxes for each door?
the only way i can think of doing it is very very long winded and would take MASSES of coding for just the 5-6 doors i have already made.
I can see from your smile, you're not here for the sunset
Windows 7 64 bit, AMD Phenom II x4 Black edition, 4 GB Ram, Radeon HD 4650, 2.5 TB HDD