Event-key

Stuck at “event.phase”. Dunno what’re the uses of “up” & “down” phase.

So, in this case, you’re using event.phase with buttons. The up phase occurs when the button is released, the down phase occurs when the button is pressed.

If you are using event.phase with collision, the event will not occur.

This is not a meaningful post.

I think you’re asking about key events, but you need to give a lot more details in this post.

  1. Tell us what you are trying to do.

  2. Show us what you did (with a short and well-formatted code post).

  3. Tell us what you saw.

  4. Tell us why you thought it was wrong.

  5. Tell us what you did to debug it.  Did you look at the API docs, read the guides, try the tutorials?

formatyourcode.jpg

So, in this case, you’re using event.phase with buttons. The up phase occurs when the button is released, the down phase occurs when the button is pressed.

If you are using event.phase with collision, the event will not occur.

This is not a meaningful post.

I think you’re asking about key events, but you need to give a lot more details in this post.

  1. Tell us what you are trying to do.

  2. Show us what you did (with a short and well-formatted code post).

  3. Tell us what you saw.

  4. Tell us why you thought it was wrong.

  5. Tell us what you did to debug it.  Did you look at the API docs, read the guides, try the tutorials?

formatyourcode.jpg