Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    Camera stuff

    Help
    2
    2
    5
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      James Blackwell last edited by

      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

      info-creaticode 1 Reply Last reply Reply Quote 0
      • info-creaticode
        CreatiCode @JamesA.blackwell-57b383d3 last edited by

        @jamesa-blackwell-57b383d3

        The simplest solution is indeed using the viewport:

        1. Make the canvas size much larger than the view port
        2. Draw a large backdrop in the stage canvas
        3. Lock the viewport on the key sprite
           

        5b9cc078-5ca0-4999-ba1c-c55453084d13-image.png

         
        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post