JirkaDellOro / Prima

Repository for the module "Prototyping interactive media-applications and games" at Furtwangen University
https://jirkadelloro.github.io/Prima
10 stars 17 forks source link

Continuously running a pointer event #36

Closed Rowan5654 closed 3 years ago

Rowan5654 commented 4 years ago

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.

image

How can I do this?

JirkaDellOro commented 4 years ago

First

Then

Rowan5654 commented 4 years ago

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"

image

but I have it right here

image

image

I've added it's js file into my html. Is there any other reason this particular error message should be appearing.

JirkaDellOro commented 4 years ago

Since you keep failing on providing me with links to your code and to your application I can only guess: separate declaration from definition.

Rowan5654 commented 4 years ago

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.