Closed Rowan5654 closed 3 years ago
First
Then
For some strange reason I can't seem to set my player as a global variable. When I do I just get the message
"Player is not a constructor"
but I have it right here
I've added it's js file into my html. Is there any other reason this particular error message should be appearing.
Since you keep failing on providing me with links to your code and to your application I can only guess: separate declaration from definition.
Alright. I FINALLY worked out how to get my project to run as an application https://rowan5654.github.io/shooty-tower/ here is the application
and here is the code repository https://github.com/Rowan5654/shooty-tower.git
hopefully this is enough to help you, help me with my problem.
I'm trying to create a bullet object every time the loop_frame event is called. However, the function that creates the bullet object requires me to have a pointer_event as an argument. I'm not sure how I'm supposed to get one of the updated mouse position.
How can I do this?