camera script

Gurtag

Member
hey there.. been using script for custom spawns and camera on a platform 2d level , works fine mostly but now trying to spawn player on the other side of map(far right) the spawn works but when seting the camera X parameter it seems to drag other spawned objects toward that direction messing up their original/set spawned position... any ideas of what could i been doing wrong?

this is the code .



spawn flash
@script
void main()
{
void P0 = getplayerproperty(0, "entity");

setglobalvar("xR", 2355);
setglobalvar("yR", 1115);
changeentityproperty(P0, "direction", 0); //Face left
}
@end_script
coords 1 1806
at 0


spawn flash
@script
void main()
{
changeopenborvariant("xpos", 1767);
changeopenborvariant("ypos", 300);
}
@end_script
coords 0 1806
at 0
 
Back
Top Bottom