Simple Question on Desired Screen Behavior
-
With screen following on, how do I get my player to reach the edge of the screen and stop? Super Mario like level behavior…
I have tried walls and enabling/disabling screen follow. Still showing too much unusable screen space.
This is a simplification of my other lengthy post.
-
@krdavis Disabling the screen follow should make the screen stop following the player. If you have an invisible wall, make sure it is a wall object. Scenery objects do not have collision.
Note that this wall should be passable and be somewhere where the screen should stop following - because if your player is running into a solid (non-passable) wall and the screen stops following when the player collides with the wall, then you'll still see screen space.
-
@krdavis Another fix is to simply add more usable screen space so this wouldn't be an issue.
-
@RobinsonX thanks, I am back to playing with walls to enable/disable screen following. I keep having a screen shift on re-enabling following on the x and y axis that has me flummoxed.
-
@RobinsonX Got working by setting my player’s anchor to the correct value. It was causing the erratic behavior. Thank you for your input!
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