How do I make an object stay in a camera frame.
I remixed a level called Alien Abduction to improve it's controls. Improving the controls was easy, however I ran into a problem with an object that was used as a UI element in the bottom left of the screen.
Originally you couldn't move the camera, so I slapped on a rotator to the object with the camera and wired it up. However, since the camera was now moving the UI object didn't stay in place anymore. I tried for at least an hour to get the UI object to follow the camera position. I tried grouping different objects together and connecting separately grouped objects with stiff sliders, but everything I tried either didn't work or looked awful and jittery.
TLDR;
My remix is uploaded and public, I challenge anyone to make the UI object follow the camera.
Original level is called Alien Abduction and you should be able to find my remix under genealogy. While editing the level, make sure you turn on studio lighting and turn off preview invisibility. You'll see the UI object next to the camera (It looks like a grey circle with a cow in the middle).
Good luck and let me know how it goes.
-
You can make the cow button stay in frame by adding it to the spaceship group as that is where the camera is too. I just remixed your level and it seemed to work well.
Hope this is helpful :) Peter -
Thanks Peter! I'll check it out when I get the chance.
I tried grouping the button to the spaceship but it simply wouldn't rotate along with the spaceship when rotating the camera in play mode. I'm glad you were able to get it working but I can't help but wonder why it didn't like me fiddling with it. I am still getting used to grouping and sculpting so maybe I just missed something.
الرجاء تسجيل الدخول لترك تعليق.