A camera Script that follows players when they jump or get knocked up in the air..?

esn23

Active member
I basically made some levels more vertical so i had a lot of the stage cut off and was wondering if i could make it so the stage scrolls up with the players height.? Thanks in advance..
 
I basically made some levels more vertical so i had a lot of the stage cut off and was wondering if i could make it so the stage scrolls up with the players height.? Thanks in advance..


You don't need a script for that depending on what you are doing. Can you be more specific? Are you talking about actual vertically scrolling levels or just a bit of movement when a player jumps/flies?

DC
 
I want it like a MVC i guess is the best way to describe it.. When someone gets launched in the air i want the screen to scroll up to where they were launched.. I tried to use the 3rd value in bglayer to move it up but my panel was too short. The issue i have no is that when i make the canvas larger so it can scroll the panel disappears.. Is there a way to move it up with code?
 
hey buddy, as I've explaine at discord, the panel image height is what controls this. Your image is just 244px tall, so the camera won't move at all.

Make it twice big (align your content to the bottom, you will need to position again all the spawns on the stage) and use cameratype 2:

cameratype {bi}

  • This sets camera's movement relative to player's movement. Camera means screen which shows level we are playing. It is much easier to understand if level allows scrolling back since you can see how camera moves if player goes back.
    • 0 = Camera only follows player's horizontal movement.
    • 1 = Camera follows player's horizontal and vertical movement. Normally used in wide levels and vertical levels (for 2D mods)
  • If set to 1, panel's height controls how far up or down camera can go (both in z and y).

I STRONGLY suggest you to read the manual, as all this info is described there.
 
Back
Top Bottom