|
Post by gamepassion on Aug 28, 2017 21:25:08 GMT
i search a script or a tutorial for do my project. for my game i request a camera that watch the enemies. pls help me and sorry for my english. because im an italian boy.
|
|
|
Post by TinSoldier on Aug 28, 2017 23:45:17 GMT
|
|
|
Post by gamepassion on Aug 29, 2017 10:04:27 GMT
thank u!
|
|
|
Post by n_iron on Sept 4, 2017 8:29:17 GMT
Hi new gamepassion person, I have the script for you. Just include the script object into your project and paste the script below into it. Link the cameras to it then alter the obj_handle names to suit if required, error check then run the game project.
n_iron
void Main()
{
if(iInitializing()){
iObjectShow(OBJ_0); // camera 1
iObjectHide(OBJ_22); // Camera 2
}
if(iKeyDown(iKeyCode("DIK_F1"))){// F1 key pressed
iObjectShow(OBJ_0);
iObjectHide(OBJ_22);
}else if(iKeyDown(iKeyCode("DIK_F2"))){ // F2 key pressed
iObjectHide(OBJ_0);
iObjectShow(OBJ_22);
}
}
|
|