Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, dBc), 18,430 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
splitting door #100307
11/28/06 01:36
11/28/06 01:36
Joined: Apr 2006
Posts: 83
M
MDC Offline OP
Junior Member
MDC  Offline OP
Junior Member
M

Joined: Apr 2006
Posts: 83
can someone please give me a detailed explanation on how to make a door that splits in the middle and goes back into the wall. hope that makes sence.

Re: splitting door [Re: MDC] #100308
11/29/06 20:24
11/29/06 20:24
Joined: Sep 2005
Posts: 80
Missouri, USA
T
Thickheaded Offline
Junior Member
Thickheaded  Offline
Junior Member
T

Joined: Sep 2005
Posts: 80
Missouri, USA
I just figured it out recently myself. You have to create each part of the door seperately. Define each as an entity ( entity* door1; )

Then move the door pieces via actions.

If you need I can upload what I have used as an example or feel free to use it.

j


It's expensive bein stupid...
Re: splitting door [Re: Thickheaded] #100309
11/30/06 00:42
11/30/06 00:42
Joined: Apr 2006
Posts: 83
M
MDC Offline OP
Junior Member
MDC  Offline OP
Junior Member
M

Joined: Apr 2006
Posts: 83
if you could that would be great.

Re: splitting door [Re: MDC] #100310
11/30/06 02:11
11/30/06 02:11
Joined: Sep 2005
Posts: 80
Missouri, USA
T
Thickheaded Offline
Junior Member
Thickheaded  Offline
Junior Member
T

Joined: Sep 2005
Posts: 80
Missouri, USA
ok...

Save this as a script and include it in your game.
Create the following levels in your /work/yourgame folder. Remember to name them; leftdoor
Rightdoor
topdoor

Build these as Map Entities
attach the right answer action to a sprite or model as a trigger for the player to click to open the door

////This is the script ///////
entity* leftdoor;
entity* rightdoor;
entity* topdoor;




action tdoor ///////attach this action to the map entity topdoor
{
topdoor=me;

}

action ldoor//////// attach this action to the leftdoor map entity
{
leftdoor=me;
}

action rdoor/////attach this action to the rightdoor map entity
{
rightdoor=me;
}

var doorpos1=41; //////these are adjusted to how far you want the door entity
var doorpos2=41; ////// to move
var doorpos3=71;


function ord //// open right door function
{
while(rightdoor == null)
{
Wait(1);
}
While(doorpos2 > 0)
{
doorpos2 -= 1;
rightdoor.x += 3 * time; ////3 is how fast the door opens
wait(1);
}
}




function otd()/////open top door
{
While (doorpos3 > 0)
{
doorpos3 -= 1;
topdoor.z += 3;
wait(1);
}
}


function old /////open left door
{
While (doorpos1 > 0)
{
doorpos1 -= 1;
leftdoor.x -=3 * time ;
wait(1);
}
}

function com /////this function calls all 3 to happen at once
{
old();
ord();
otd();
}

action answer ///// attach this to a sprite or model to start everything
{
my.enable_click=on;
my.event=com;
}


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1