ResidentSawbones Posted September 6, 2015 Share Posted September 6, 2015 Hi I'm trying to implement a bounding box in the bottom right of my screen. However my camera follows my player and it offsets everything. When I debug the bounding box it renders, but won't stay in the bottom right of the screen. Is there someway to get the offset of the camera or world so I can keep the bounding box in the same part of the screen? Link to comment Share on other sites More sharing options...
in mono Posted September 7, 2015 Share Posted September 7, 2015 Haven't tried it, but you should be able to poll x and y on this.game.camera and just set that sprite's position in update(). Link to comment Share on other sites More sharing options...
CodeToWin Posted September 8, 2015 Share Posted September 8, 2015 after you have define the sprite's position, try using sprite.fixedToCamera = true; in mono and jdnichollsc 2 Link to comment Share on other sites More sharing options...
demisephi Posted September 8, 2015 Share Posted September 8, 2015 @CodeToWin true! it works Link to comment Share on other sites More sharing options...
Recommended Posts