GML There is a delay in following the objects

I am trying like this :
Code:
//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?
 
Wait, do you want the view to follow the object or the object to follow the view?

If there is a an object that is always drawn to the same place on the screen, use the draw GUI events to draw it relative to the screen instead of relative to the view.
 
For the record, currently view coordinates are updated sometime between the Step events and the Draw events, so if you want to use the method of moving the instance to a position relative to the view, it needs to be done in a Draw event, like Draw Begin for example.
 
I tryed this :
object1 step event :
Code:
x = view_xview[0]
y = view_yview[0]+592
object1 is not visible

object2 Draw GUI event :
Code:
draw_sprite(spr_object1,0,10,680)
I think it worked. I hope it will not be a problem :)
And thanks for replies :)
 
Top