camera code

  1. N

    SOLVED Trying to "Stop" a Camera From Going to Certain Parts of a Room

    Hi all, I'm currently working on a 2D game with a smooth moving camera that follows the player. The camera itself works fine and using clamp() I've managed to keep it only moving within the confines of the room it's placed in. I want to be able to control where the camera goes more precisely...
  2. T

    SOLVED Sprites/Textures Seem to Shiver Depending on Camera Position [Help needed]

    So I seem to be having some problems with sprite/texture rendering when I zoom the camera, or sometimes when the camera simply moves. I took this video so you can see what I mean. I have ticked the tile horizontally/vertically on the sprites but it hasn't really seemed to help. Any advice on how...
  3. Redcakes

    Pressing F4 for fullscreen

    So I made a camera and I have it working. The only thing now is I want to allow players to press F4 to switch it into fullscreen. I have this code in a persistent object: if(global.fullscreen = false){ window_set_size(displayWidth,displayHeight); } ...which sets the camera to the settings I...
  4. R

    Help with layer_sequence_create

    I'm using layer_sequence_create to create a transition from one room to the next the code is -------------------------------------------------------------------- function TransitionPlaceSequence(_type) { if (layer_exists("transition")) layer_destroy("transition") var _lay =...
  5. southyokkai

    Help with camera in game maker studio 2

    So, basically I'm having trouble creating a megaman style camera, all I managed to do is to get it to follow my character. I tried to follow this video which was exactly what I wanted, but then I saw that it was done in Studio 1 so I tried to translate it to Studio 2, but it ended up in errors...
  6. netscaped

    Camera panning not working

    Hey all, I'm very, very new to gml, but what I tried to do here was to slowly move my camera to the desired coordinates (It's a very uh, pixelated game, so 1px per loop wouldn't be too slow), but it doesn't seem to do anything except freezing the game up. I've tinkered with it for a while now...
  7. R

    camera help

    hello, I have an interesting idea when it comes to the camera following the player, but I have no idea how to implement it. so, basically the player will be on one side of the screen such as this. and note the camera follows the player in this positions already. and what I would like to do is...
Top