-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with moving an image while using camera.follow #6
Comments
Here is my code: https://gist.github.com/CodeLuca/b515ec61f64be36a98df |
The problem is that you want to follow the player and move the camera at the same time, but you can't use them at the same time. You can follow the player or move the camera. |
I didn't even realise I had the camera following thing sorry. Even so, whenever a bullet is fired the player is stopped from moving: https://gyazo.com/8e37a375d9686f5f9d3552223de58219 |
Weird. I looked at the code and it shouldn't stop there, although i don't see any follow or camera moving in the code, but in the gif the camera follows the player. |
God I am really stupid sometimes. That is the wrong code. Here is the actual code: |
Hey again,
I am sorry for sending you so many issues. Anyways, here is another one:
I have tried adding shooting to your world-camera example and if you move the camera and shoot a bullet then the camera cannot move until a bullet is not being spawned. It is really strange.
The text was updated successfully, but these errors were encountered: