camera movement

  1. Thexel PIN

    Legacy GM Views and mouse detection...

    Hi, so in my game you control the player by moving the mouse. There are screen shakes, which I make by moving the view... This results in the player going crazy as the game starts detecting the mouse in different places. Is there a way to solve it? (BTW, in my game the views don't move for...
  2. G

    GML Camera Issues

    Hello there everybody. I am brand new to GameMaker and this is my first post. I am trying to code a particular 2D top-down camera that I can best relate to function with the Hotline Miami camera. However, there is a key difference that I am trying to implement but have been unsuccessful...
  3. Beggar Studios

    Camera problem in GM2

    Hey everyone, I recently upgraded to Game Maker Studio 2 and I noticed there is a new camera system. So I'm trying to revamp my old code so it uses cameras instead of the old views, but I ran into a problem. There is this weird shaking effect when the camera follows the player that doesn't...
  4. CornerLord

    Legacy GM [SOLVED] Fixing going diagonally faster in top-down game makes camera movement lag

    Hello. I'm making top-down game and when I "fix" speed when moving diagonally it makes camera lag if I move diagonally. I have obj_camera and I have set view to follow it in room settings. I have also tested without camera object but it doesn't help. Here is my code for player movement...
  5. Dylaniza

    Camera movement.

    I posted about this before but does any one know why this may not work. I want it to move the camera to the next part like in Zelda. I Put this code in a Step function. This is my code. target_xview = (Player.x div 1000) * 1000; target_yview = (Player.y div 560) * 560; view_xview[0] =...
  6. Dylaniza

    GMS 2 Legend of Zelda like camera.

    Does any one know why this might not work? This is my code. target_xview = (Player.x div 1000) * 1000; target_yview = (Player.y div 560) * 560; view_xview[0] = target_xview; view_yview[0] = target_yview; I got this from a tutorial on youtube but edited it to fit my camera. People say it works...
  7. P

    GML Dynamic Camera code explanation

    I've been following Shaun Spalding's tutorials. One of his videos mentioned a code for something he called a dynamic camera. The code was following: var xTo, yTo; move_towards_point(mouse_x, mouse_y, 0); xTo = obj_player.x + lengthdir_x(min(256, distance_to_point(mouse_x, mouse_y))...
  8. Squareworx Studio

    TDS Camera Motion Script

    Hi Guys, I've noticed how a lot of developers that create TDS games, lack smooth camera motion, and decided I would like to create a mini script that you could import into your game. Obviously this camera would have more applications than just your average TDS...
  9. E

    GML [SOLVED]Camera View/Follow player around (centered)

    How do I get the camera to follow around the player at its center, and for it to be a small area (zoomed in) so the player has to move and explore to see other areas of the map etc if you know what I mean?
  10. C

    View xview or yview problems (Solved)

    I've noticed that view_xview or view_yview is not on game maker 2 anymore, is there any alternative?
  11. D

    Room rotation

    instead of making my character follow the mouse in my new top down project, I decided I wanted the character to face to the top of the screen at all times, making the floor rotate once the player moves the mouse. it's by far not as easy as I thought since GameMaker doesn't seem to have a...
  12. A

    Questions about moving camera control object

    Hi guys. I'm fairly new to this, and I'm working on a 2D top-down maze/puzzle game, where the levels are dark. The player can only see a small area around them. I'm trying to include a camera control object, so that players will be nearer to the character, rather than see the entire level at the...
  13. V

    Legacy GM Camera stops following player

    As I was adding up more mechanics to my game I noticed that, for some reason, whenever my character is in his defense state script and moving, the camera stops in place, going back to following him when he stops moving or goes to another state. ///create camera...
  14. S

    Legacy GM [Question] How to: detect the end a "view sequence" | Change "view speed" on the fly?

    Hi Folks, I am pretty damn new to this GM stuff so please forgive me if I might ask something what is fairly easy or if a thread like this already exists... i probably didn't notice that. So I watched a few tutorials and tried to adapt it and use it with other things. Made my first useless...
  15. G

    Script Move Camera

    Hi, I'm new here in the forum and have a questions. I want make my camera move with the keyboard. But, i do no about script in game maker. if keyboard_check_pressed('vk_left') { view_xview[0] -= 10; } if keyboard_check_pressed('vk_right') { view_xview[0] += 10; } What is wrong?
  16. M

    Make the view pan ahead of player?

    Hello all. I'm currently making a 2D platformer, and I'd like the view to be able to pan to the right of my player when they are facing to the right, and to pan to the left when they face left. A good example I can think of is from the first Rayman game. Basically, to give the player a better...
  17. Z

    Legacy GM Limit camera to in room, but don't just stop it.

    So I am having my camera in between the center of the room and the mouse, but it can go way far out of the room, I have some code that stops it before it goes out of the room but it makes it stop instantly and it looks bad. How would I make it smoothly stop outside of the room? Like have it move...
  18. L

    Camera movement and GUI problems

    so I'm creating a game right now and I've come across a slight problem with the camera movement. the code I'm using which is this seems to not work very well: ///Camera Movement view_xview[0] += ((x-(view_wview[0]/2)) - view_xview[0]) * 0.5; view_yview[0] += ((y-(view_hview[0]/2)) -...
Top