I need to make the camera follow the player, but how


#1

I used the Center camera on object event from what I read from the wiki and some tutorial videos, but it doesn’t work. How do i fix that?


#2

Hi, I don’t know why ‘center camera on object’ isn’t working for you, but you can try this one:

It’s a bit rough, but it should work.


#3

Okay. I shall try this.


#4

It still doesn’t work.


#5

Post your events or upload your project, because it works for us.


#6


#7

Did you drag the player into the scene?


#8

Yeah, i did put the player in the scene. Why?


#9

It should work then… it’s usually that simple… what other events do you have…


#10


#11


#12

Not sure what it could be but try adding the condition “At the beginning of the scene” to your camera code


#13

Okay. I shall try that.


#14

It still doesn’t work.


#15

Just for an experiment, try doing a key press condition “If C is pressed” , then the camera action… Then try to see if you press C, does it center the cam


#16

No. It still doesn’t work.


#17

The player on the base layer?


#18

No, i didn’t. What about it?


#19


#20

Do I need the base layer? I already put the base layer, but it still doesn’t work.