Attaching camera to a car and making it look realistic

For this student game, the camera is attached to a car. However, when you move the mouse down, the car disappears under the ground. It is on Scene 4. How do we prevent the car from doing this? Thanks!

https://edu.cospaces.io/ULF-FGX

Hi Kelly,

You’ve attached the car to the camera, not the other way round, I think. When attaching the camera to the car, the camera should become fixed position and moving the view with the mouse should not move the car.

You can then override the arrow/WASD keys, using event blocks, to move the car (with camera attached).

Hope that helps! Let me know if you have any further questions.

Geoff @ TechLeap

thanks Geoff (again)! It works.

one student is now trying to, when they click the dragon, to have the camera get on top of the dragon and ‘ride it’. How can we do that?

You can use the click event block and the detach/attach blocks to detach the camera from the car and attach it to the dragon :blush:

Hope that helps! Let me know if you have any further questions on this topic.

Geoff @ TechLeap