Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Help
  3. Camera stuff

Camera stuff

Scheduled Pinned Locked Moved Help
2 Posts 2 Posters 773 Views
  • 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 Offline
    J Offline
    James Blackwell
    wrote on last edited by
    #1

    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

    CreatiCodeI 1 Reply Last reply
    0
    • J James Blackwell

      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

      CreatiCodeI Offline
      CreatiCodeI Offline
      CreatiCode
      wrote on last edited by
      #2

      @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
      0

      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
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • CreatiCode