I am new to Defold and have been following the tutorials / reading the documentation. However, I’m still having issues with getting the Orographic camera to work. No matter what I try it doesn’t work (the view stays the same and it doesn’t zoom in).
You have a typo in the message ID here, it’s missing the “c” in “acquire”.
I would also double-check that the URL is correct. Since the script is on the same object as the camera component, you should be able to just do “#camera”. But you can check the absolute URL of the object by doing:
Actually, now that I have the camera working how I want it I noticed another issue.
My character’s sprite shows up twice when the camera moves to follow him. It looks like I’m seeing double. When he is in the idle state I only see one of him.
Not sure if that is my sprite animations or the camera?
Before 1.6.2 it worked flawlessly. Something changed and I can’t yet find out what. I noticed it because I had tutorial written ready in November for camera movement for Platformer, but when I tried to follow my own tutorial - I failed Before I needed only to attach camera and send the two messages, now it’s not the way
The “doubled” sprite is appearing really fast, because I can’t record it on screen, but I see it on my screen.
I recorded it though with phone:
Aa, ok - there seems to be issue here.
Position of hero game object (having camera inside) is changed over time with non-integer values. e.g.: