Query - camera follow my sprite

Hi,

I have a query about ‘camera follow my sprite’

In this platform game, it works:

However, in the new game I have been working on, adding ‘camera follow my sprite’ doesn’t work, and it breaks the game. The sprite can not move, even with the move buttons. You can see my code here.

Can anyone tell me why ‘camera follow my sprite’ works in one game and not the other? What am I missing?

Thanks,
Fluffy.

1 Like

The easiest way to see what’s going on with the second game is to add another sprite in:

Background images by default are pinned to the camera, so if the camera is following a sprite, it can appear as if nothing is happening. You can see the camera is moving, though, because the stationary taco sprite is ‘moving’ relative to it when the player moves. One option is to add this extension

which will let you do something like this

2 Likes