Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Converging Camera Script - Four Swords Idea (By Me)  (Read 2539 times)

0 Members and 1 Guest are viewing this topic.

DarkerColt

Programmer / Game Developer
Converging Camera Script - Four Swords Idea (By ...
« on: March 20, 2013, 12:28:47 am »
  • "Youtuber, Fan-Game Creator, Student"
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 26
Couldn't find anything similar on the forum so heres a resource by me.
Its a script for use in an open world splitscreen four swords game.

//2 player combining views script!

//this script requires both a 1st player and 2nd player but can be extended for up to four player splitscreen games.

//place this on a global object, but this script must be running off the 2nd player and also in the step event.
if instance_exists(2ndPlayer)
{
   //combining views
   if distance_to_object(1stPlayer) > 40
   {
   view_visible[0] = false;
   view_visible[1] = true;
   view_visible[2] = true;
   }
   else
   {
   view_visible[0] = true;
   view_visible[1] = false;
   view_visible[2] = false;
   }
}
else
{
view_visible[0] = true;
view_visible[1] = false;
view_visible[2] = false;
}

//script curtesy of Ethan Behan.
//credit would be appreciated.

//view example:

//set up views like this:
//view0
//view in room: W:160 , H:144
//port on screen: X:80 , W:160 , H:144
//Object Following: 1stPlayer
//Hbor:500 , Vbor:500

//view1
//view in room: W:160 , H:144
//port on screen: X:161 , W:160 , H:144
//Object Following: 1stPlayer
//Hbor:500 , Vbor:500

//view2
//view in room: W:160 , H:144
//port on screen: X:0 , W:160 , H:144
//Object Following: 2ndPlayer
Logged
Hey There! im new to the forums, but will be quite active! started work on a new Majora's Mask Remake project in the forums if anyone is interested!
  • Youtube:
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.154 seconds with 39 queries.