by Richard213 » Fri Mar 11, 2005 12:26 pm
hmm why go through such code as this:
Code: Select all
script 1 open // side scrolling camera
{
Thing_changeTID(0, playernumber()+1111);
int playerposX = getactorX(1111);
spawn(T_ROCKET, playerposX, -896, 50, 7, 90);
changecamera(7,1,0);
Thing_Remove(7);
delay(1);
restart;
}
when you can just simply do this:
Code: Select all
script 1 open // side scrolling camera
{
Thing_changeTID(0, playernumber()+1111);
int playerposX = getactorX(1111);
changecamera(7,1,0);
SetActorX(7, playerposX);
delay(1);
restart;
}
this nerrows down alot of the args and makes things a bit easyer to read and dont have to hassle of finding exact y position becuase its already placed in the map
note that the code i put is something i wrote up in about 30 sec so i doubt it works lol
hmm why go through such code as this:
[code]
script 1 open // side scrolling camera
{
Thing_changeTID(0, playernumber()+1111);
int playerposX = getactorX(1111);
spawn(T_ROCKET, playerposX, -896, 50, 7, 90);
changecamera(7,1,0);
Thing_Remove(7);
delay(1);
restart;
}
[/code]
when you can just simply do this:
[code]
script 1 open // side scrolling camera
{
Thing_changeTID(0, playernumber()+1111);
int playerposX = getactorX(1111);
changecamera(7,1,0);
SetActorX(7, playerposX);
delay(1);
restart;
}
[/code]
this nerrows down alot of the args and makes things a bit easyer to read and dont have to hassle of finding exact y position becuase its already placed in the map
note that the code i put is something i wrote up in about 30 sec so i doubt it works lol