Changing cameratype in the middle of a level

mersox

Active member
Can this be done? I have been trying for over two hours, with zero luck.
I've been using changelevelproperty("cameratype",0); in an entity

HELP PLEASE

EDIT: More info:

Normally I use cameratype 0 in my levels, because I don't like the camera to move up and down each time the players jump.
However I have this one stage which twice as tall as the rest of the stages. I want to show the player flying in the sky and then jumping down to the panel/ground at the beginning of the stage, and I want the camera will follow the character as he falls down. Then, as soon as players land, I want the camera to not move in the Z axis anymore, just left and right.

So, the stage starts with cameratype 1, and I want to switch it to cameratype 0 when players land on the floor.

Hopefully this makes sense.
 
I have not really messed with anything like this but on a guess the player entities may be stopping the screen moving off them try disabling their "subject_to_screen" property. Sorry if this did not help but you did not give a very detailed description on what you want to accomplish.
 
msmalik681 said:
I have not really messed with anything like this but on a guess the player entities may be stopping the screen moving off them try disabling their "subject_to_screen" property. Sorry if this did not help but you did not give a very detailed description on what you want to accomplish.

Hi msmalik681, I added additional information to my first post. Thanks for replying.
 
mersox said:
I want to show the player flying in the sky and then jumping down to the panel/ground at the beginning of the stage, and I want the camera will follow the character as he falls down. Then, as soon as players land, I want the camera to not move in the Z axis anymore, just left and right.

So, the stage starts with cameratype 1, and I want to switch it to cameratype 0 when players land on the floor.

Hmmm.... cameratype 1 is for dynamic camera movement. If you only want camera to start from sky, you could just move camera's starting position with script like this:

Code:
spawn   empty
@script
void main()
{
    changeopenborvariant("ypos", 0);
}
@end_script
coords  240 272
at      0

empty entity is irrelevant to the script. I pasted the script to this entity as example, if you have other entity spawned at scrollpos 0, you can paste the script there instead
Back to the script, the script simply puts camera at topmost of panel instead of ground where player starts

HTH
 
Thanks Bloodbane. It's a good idea, I now just have to find a way for the camera to stay up for a bit bepore scrolling down.

Actually now that I think about it, I did something like this before for the intro sequence... will update soon
 
Back
Top Bottom