Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, alibaba), 1,184 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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