Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (EvanTJ, JeyKey II), 8,576 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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