How do i make the camera fallow me?
TDGames
Member Posts: 13
i made an image in photoshop of somthing like 480 x 1000 and i want my guy to fallow down the "road". if i didnt make this vary clear tell me and ill try to restate it. THanks!
Comments
To have a camera follow you, first click into the actor editor of the actor you want the camera to follow.
place the "control attribute" behavior in the actor.
go back to the scene editor, and in the inspector, click scene and then attributes.
where it says camera, click it and click tracking area.
to start, make it like 60 for both width and height, but its completely up to you. you can also edit gravity here also.
hoped i helped a bit.
Indeed, I found out just yesterday that you can make an image 256x256 and then scale it in your scene to cover the area (useful for stars etc). This saves a bunch of memory.
Yesterday my game was crashing on the second level. Now you can play up to six levels in one go without crashes - all thanks to good memory management via the images.
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io