D
Den
Guest
So in my game you can use a minion to scout ahead in a level but the trouble is I cant figure out how to make the view follow the other object. The player still exists while you take control of the minion too.
Here's the code:
See I thought I could just set up another if statement and switch what the view follows but that doesn't seem
to work for some reason (perhaps I could be doing it wrong?) the view follows the camera object btw,
I also tried just setting up another view the same way and switching it that way, which sorta works but I can't
have the custom set up that way. Does anyone know how I could do this??
Here's the code:
Code:
if(!instance_exists(obj_minion)) {
x+= (obj_player.x-x)/20;
y+= (obj_player.y-y)/20;
}
to work for some reason (perhaps I could be doing it wrong?) the view follows the camera object btw,
I also tried just setting up another view the same way and switching it that way, which sorta works but I can't
have the custom set up that way. Does anyone know how I could do this??