- Reaction score
I'm currently working on a side-scroller map ( camera moves north all the time ) and I want my unit to stay within view. I made a region ( called Playable Area <gen> ) covering most of the panning camera's view and I make it move north all the time. Also made a arrow-key-movement system that makes sure you stay within the borders of the region. However, when my unit leaves the camera view at the bottom of the screen it doesn't keep it within the region borders, so I tried using
For some reason, it doesn't do anything though. Anyone got an idea what else I should try?
Keep in view Events Game - MyUnitY becomes Less than or equal to (Min Y of Playable Area <gen>) Conditions Actions Unit - Move MyUnit 0000 <gen> instantly to (MyUnitPosition offset by 100.00 towards (Facing of MyUnit 0000 <gen>) degrees), facing 90.00 degrees Set MyUnitPosition = (Position of MyUnit 0000 <gen>) Set MyUnitY = (Y of MyUnitPosition)