Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///Movement
- x = lerp(x,obj_player.x,acc);
- y = lerp(y,obj_player.y,acc);
- x += random_range(-shake,shake);
- y += random_range(-shake,shake);
- shake = lerp(shake,0,0.1);
- view_xview = -(view_wview/2)+x;
- view_yview = -(view_hview/2)+y;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement