Stop map from scrolling but let player still move?
Posted
by
ChocoMan
on Game Development
See other posts from Game Development
or by ChocoMan
Published on 2012-07-30T09:00:54Z
Indexed on
2012/10/10
21:57 UTC
Read the original article
Hit count: 321
java
|side-scroller
I have a basic method of scrolling around on a map (moving the map instead of the player), but at when the player gets to a certain proximity to the edge, how do you stop the map from scrolling, but still allow the player to move around until it is away from that proximity? I'm not looking for any code. Just a suggestion so that I can implement it myself. I can see it visually (creating 4 boxed intersecting boundaries for the player to enter), but not sure how to come about stopping and resuming the scrolling of the map.
© Game Development or respective owner