How can I load in defold editor an example of using camera? (SOLVED)

hello, i’m trying to create a camera that follows the player in the scene (platform game)
I’ve seen some posts and the tutorial and i’m not able to find the solution.

first try:
create a camera inside a game object witg default parameters
put the gameobject of the camera as a child of the player (dragging de camera gameobject)
when the camera acquires camera focus (i put this in the init of the player script) i only see the blue background of my game and nothing happens

any help?

Maybe you should watch this http://britzl.github.io/publicexamples/ --> “the cube”

:+1::+1::+1:

3 Likes

THANKS ironmaidenfan for the info. one question, when i download the game source to test it, how can i open it in defold editor? I can only open projects loaded in my defold dashboard :frowning:

thanks in advance

If you open a project and right click a file you can select “Show in Finder” (or explorer) and see all project files on disk. From there it’s a matter of copying any files from github or elsewhere and add or replace what’s in the project. Defold will pick new files up automatically.

1 Like

https://forum.defold.com/t/can-defold-use-github/1183/10?u=ironmaidenfan

THANKS again! This forum works!!!

1 Like

THANKS for the information.