I have a player character that fires a bullet from his gun towards the mouse cursor.
This works fine until I add an “Enforce camera boundaries” action after which when the player is near one of the boundaries the bullets stop aiming accurately. If I move away from the level boundaries it works and if I disable the enforce boundaries event it works fine again anywhere on the map.
Does anyone have any ideas on how to fix this?
Incorrect aim (sorry for the poor image quality)
Fire bullets event
Enforced boundaries event
Hi …I’ve not used the camera boundaries extension but do you have the same problem when you restrict the camera manually with player x and y conditions and camera follow player action?
I think it might be a layer problem. I think it might be firing to the cursors position on another layer
I’m using the smooth camera extension to follow the player as they move around the level. It all works properly everywhere until you approach one of the enforced camera boundaries at which point it starts aiming incorrectly.
Maybe it’s a layer problem? As far as I know if you don’t put any arguments in the cursor() then it defaults to the base layer. Both the camera and boundary are on the base layer.
ahh ok… what happens if you create a draggable object and fire the bullet at that ?