• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

follow

  1. jobjorgos

    Legacy GM [SOLVED] how to let object follow other object without flicking

    Hey, I have a boss that chases the player and that went pretty good with the following script: if gofollow == true{ move_towards_point( obj_player.x, obj_player.y, 9 ); } But the small problem now is that whenever the boss is straight at where the player is, it is gonna flick which look...
  2. R

    Question - Code Camera not following outside room

    Hi, The camera only follows my player inside the room but when I move to the edge of the room the camera just doesnt follow. This is the code im using to create the camera: camera = camera_create_view(0, 0, 1024, 768, 0, obj_player, -1, -1, 512, 384); view_camera[0] = camera; I hope someone...
  3. T

    GameMaker All Instances Run Their Step Simultaneously

    Hello! I'm trying to make it so the player can pick up coins by walking over them, but once you're in the coin's activation radius, it triggers every coin in the room to come flying at you. How do I trigger individual coin objects? Code looks like this: //Pick Up if...
  4. K

    GML Object shaking when following other Object?[SOLVED]

    I have a little problem:I'm making a Remixed Pong game and in the Title Screen appears a game demo, with the camera following and the bats following the ball, the problem is when the bats follow the ball, they "shakes", and never stop this, I tried to put if...
  5. mar_cuz

    GameMaker How Would I Do This [Picture]

    Hi Guys, I want an object, obj_Character, to follow another object, obj_Leader. The thing is, I don't want obj_Leader to mover further than 32px away from obj_Character at all times. The player will control obj_Leader and it must stay within 32px in any direction from obj_Character. Also, when...
  6. U

    How to make a object that follows player?

    I can't seem to find a sollution to how to make an object around the player for a certain time (a bubble around player that last for 2 secs for example) when I click the right mouse button and make it follow the player. Probably very simple thing but not a simple thing for me. I'm using GML...
  7. H

    Legacy GM Make spikes follow object

    Hi! I'm making these spikes which are supposed to follow this object as it goes up and down continuously. However, I can't seem to get it to work. Here is a picture of the current setup; The blue thing is my object, which is supposed to go up and down with spikes on the bottom and the top. My...
  8. Furkan Karabudak

    GML There is a delay in following the objects

    I am trying like this : //Step event object.x = view_xview[0]+10 object.y = view_yview[0]+700 But there is delay. How can I ensure object follows the view without delay?
  9. V

    Legacy GM [SOLVED] Enemy AI - Follow player

    I'm making a top down game and I'm using this to make the enemy follow the player: Create: grid= mp_grid_create(0,0,room_width/8,room_height/8,8,8) mp_grid_add_instances(grid,obj_solid,1) path=path_add() Step: mp_grid_path(grid,path,x,y,obj_player.x,obj_player.y,1) path_start(path,2,"",1)...
  10. I

    Follow Issue /SOLVED/

    So I've been working on this follow function and I cont figure out how I fix this. What it's supposed to do is for Dash (NPC) to follow Dot (Player) and it seems to work when walking normally, but when you change direction while Dash is changing directions to follow you Dash walks of until you...
  11. C

    Enemy Chase?

    Hello, i'm trying to program a enemy chase state. I was trying to achieve that the enemy goes across the platform, turning on the edges (heights variable) but once in a radius of 10 it will follow the player off the edge and follow until out of range. Once out of range, it would go back to what...
  12. I

    Carterpillar system partner following player

    I have this code that makes a NPC follow the player. However, there is just one thing that needs to be fixed. When the player is not moving, the NPC is in the exact same X and Y position of the player and it looks like he is behind him. Thanks to "if ds_queue_size(Following_que) > 30", the...
  13. G

    Legacy GM Checking collisions before 'Move Towards Point'

    I want to put an instance in my game that will block the player from getting by, therefore, it always follows the player's x position (ghost is the name of the player's instance) like this: mp_potential_step(ghost.x, y, ghost.speed, false) But this instance is positioned between two blocks, so...
  14. I

    NPC following player carterpillar system

    Hello everyone, I would like to know how I can make a partner who follows the player, something like this: http://imgur.com/9T7oDqa I found out that there is a way to do all that via code, the partner follows the same steps of the player: Follower CREATE EVENT Following_que =...
  15. M

    Srcipts for enemy

    I made scripts for an enemy static, following and attacking, but this keep popping out when an enemy kills me, anyone knows why? Thanks! ############################################################################################ FATAL ERROR in action number 1 of Step Event0 for object...
  16. I

    NPC following player Carterpillar System

    I'm sorry but how can I make a Carterpillar System like in Earthbound, Mario & Luigi RPG, etc (mostly RPGs)? I did something similar via code but the follower sometimes gets stuck behind a wall or any other object. I've heard about making an Ai that follows the player's coordinates but I don't...
  17. I

    Partner following the player

    Hello, is there a way possible to make a partner who follows you but doesn´t get stuck behind walls? With help I did some code to make a player who follows you but sometimes, he gets stuck behind a wall or something else and I would like to know how to fix that. This is code I use for the...
  18. I

    Partner follows Player (Help)

    Hi everyone, I would like to know how I can make a partner that follows your player like in these examples: http://imgur.com/9T7oDqa http://cdn.atomix.vg/wp-content/uploads/2015/01/Earthbound.gif I did some code reading some tutorials and I got this (it is a 20 seconds video): As you can see...
  19. Z

    "distance_to_point"Follow object.x GML and Drag'n Drop

    If I put a question with " if distance_to_point(obj_player.x) is ..." it says to me that something're wrong (Wrong number of arguments to function or script) I want that an object follow the x position of the player with his own speed if you know another way to do it. I'm really don't have any...
  20. S

    Windows Make an object create an object and follow it

    I am trying to implement a vision mechanic in my game (not using distance_to_object) by using an object with the sprite of a vision cone. This is the current code for creating the cones at the start of the game. //Check if we have vision HaveVision = instance_place(x,y,oVision) if...
Top