Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 1,088 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Door Problems #74270
05/15/06 16:39
05/15/06 16:39
Joined: Apr 2006
Posts: 15
F
fallenleaf Offline OP
Newbie
fallenleaf  Offline OP
Newbie
F

Joined: Apr 2006
Posts: 15
Hi, I'm trying to find a simple door script to use. I've tried using the Door01 script and followed the simple instructions through several times to try to get it to work, and it doesn't. The tutorial i've using used the A5_template base script, and i of course am using the A6_template script, so i don't know if thats the issue. Any help would be greatly appreciated.
I've verified the default 'action' button should be Control, but it doesn't seem to activate the door. I saved and compiled the door as a seperate file, loaded it in my game as a Map-Entity, loaded the Door01 script and attached it to the door and is just doesn't work.

Last edited by fallenleaf; 05/15/06 16:50.
Re: Door Problems [Re: fallenleaf] #74271
05/16/06 18:02
05/16/06 18:02
Joined: May 2006
Posts: 13
Ardabil,Iran
F
farshad_h Offline
Newbie
farshad_h  Offline
Newbie
F

Joined: May 2006
Posts: 13
Ardabil,Iran
Hi, this code is very simple , use this:

function scan_me()
{
temp.pan = 180;
temp.tilt = 180;
temp.z = 100;
scan_entity(player.x, temp);
}


on_space = scan_me;
//////////////////////
function operater()
{
if(my.skill1 <= 0)
{
snd_play(door_open_snd, 200, 0);//your sound
while(my.skill1 < 90)//opening the door
{
my.pan -= 6*time;
my.skill1 += 6*time;
wait(1);
}
my.skill1 = 90;
}
else
{

while(my.skill1 > 0)//closeing the door
{
my.skill1 -= 6*time;
my.pan += 6*time;
wait(1);
}
wait(4);
snd_play(door_close_snd, 200, 0);
my.skill1 = 0;
}
}
///////////////////////////
action door_rotate//attach to the door
{
my.enable_scan = on;
my.event = operater;
}
//////////////////////////

Another door(sliding):
//////////////////////////
function func_door()
{

if(my.skill1 <= 0)
{
while(my.skill1 < 90)
{
my.skill1 += 6*time;
my.y -= 6*time;
wait(1);
}
my.skill1 = 90;

}
else
{
while(my.skill1 > 0)
{
my.skill1 -= 6*time;
my.y += 6*time;
wait(1);
}
my.skill1 = 0;
}
wait(3);
}

Re: Door Problems [Re: farshad_h] #74272
05/17/06 03:00
05/17/06 03:00
Joined: Mar 2004
Posts: 155
M
MentalAbyss Offline
Member
MentalAbyss  Offline
Member
M

Joined: Mar 2004
Posts: 155
If you would like some more versatile door code that allows you to use triggers and panels to control your doors as well as the option to have them scan or impact controlled. Then you might consider this module on GameKnack.

www.gameknack.com/cgi-bin/itembrowse.cgi?item_number=MOD6&category=module&subcategory=Map_Entities

It offers many great configurations for most door and simple mover needs.


A6 Developer, Contractor and Content Producer. See our digital goods for sale at www.GameKnack.com Ask about our contract services for models, scripts and level design at www.MentalAbyssStudios.com
Re: Door Problems [Re: MentalAbyss] #74273
05/17/06 05:43
05/17/06 05:43
Joined: Oct 2003
Posts: 2,628
IL,US
FeiHongJr Offline
Expert
FeiHongJr  Offline
Expert

Joined: Oct 2003
Posts: 2,628
IL,US
hehe this reminded me of one of my very first contributions tho I guess no one else liked it cause I didnt get any replies *tears* anyways ran a search and found it... Yea that search button really does work

Prolly not what your lookin for but what the hey

EDIT: OMG I made that post 2 years and two days ago has it really been that long jeesh how the time flies.

Last edited by FeiHongJr; 05/17/06 05:45.

http://www.freewebs.com/otama_syndicate/index.htm - Each master to his own technique.

- Not me said the bee, Nor I said the fly.

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