Camera stuff
-
so i want to create a top down roleplay game. essentially you go around and do stuff and get a job. what i want is a camera that scrolls without using the viewport as that does not work. i asked the ai and it still used the viewport so if you can find a solution that would be much appreciated
-
so i want to create a top down roleplay game. essentially you go around and do stuff and get a job. what i want is a camera that scrolls without using the viewport as that does not work. i asked the ai and it still used the viewport so if you can find a solution that would be much appreciated
@jamesa-blackwell-57b383d3
The simplest solution is indeed using the viewport:
- Make the canvas size much larger than the view port
- Draw a large backdrop in the stage canvas
- Lock the viewport on the key sprite

Here is an example:play.creaticode.com/projects/6842f3d73d952dd83a741d13
If this “does not work”, can you please explain what the problems are? We can either refine this or discuss a completely different solution.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login