i would like to join ur game
My current project is you know superstars racing?
I want to do the same with gamestudio with races and online but its really difficult.
Well i can give u a door code which makes that when ur near the door the door opens by pressing a key u want
Here is my own scripted doorcode:
var f;//the variable for the key
var num;//speed of the door
var winkel=90;//thats for the door how much it shell open
SOUND* door="door.wav";//just a doorsound
ENTITY* tua;//thats how a name the pointer of the door i know not creative but ok (:
action oeffnen()
{
tua=my;
while(1)
{
if(vec_dist (my.x,player.x) < 50)
{
my.pan+=2*num*time_step;
if(key_space)
f=1;
else
f=0;
if(my.pan<=0&&f==0)
num=0;
if(my.pan<=0&&f==1)
{
num=1;
f=0;
snd_play(door,100,0);
}
if(my.pan>=winkel&&f==0)
num=0;
if(my.pan>=winkel&&f==1)
{
num=-1;
snd_play(door,100,0);
}
}
wait(1);
}
}
WFG programmer