Why doesn't this work?

lucario888

  • Posts: 38
So, I'm making a multiplayer shooter game. I just copy-pasted the behavior for Player 1 and the Player 1's projectile into Player 2 and Player 2's projectile. One of such behaviors didn't want to work for some reason and I can't figure out why if it works on Player 1.

When the circled requirement is met, the bullet fails to spawn altogether. No, its not colliding with anything and yes I have tried to replace the blocks with the same ones but that didn't work. Weirdest part is when I replace the "W is down" block with a boolean set to true, it actually works fine. 1st pic is the bullet behavior and 2nd is the Player behavior. Any advice would be appreciated.

Thanks,
Me

Edit: Rip I forgot to circle the behavior, it was the "Otherwise if W is down" block inside "If Q is down" block on the first picture in the "when Created" part.

« Last Edit: November 13, 2016, 07:34:18 pm by lucario888 »

tigerteeth

  • Posts: 733
I think you need to put that code inside a "when updating" (also known as "always") container, rather than "when created".

zerosimms

  • Posts: 710
For your keyboard inputs, use the event 'Keyboard', that way the game will be listening out for when your users presses the relevant key.

lucario888

  • Posts: 38
This error may be somewhat tricky to explain with words so here's a video I made showcasing what I'm talking about

https://youtu.be/FyPYadxaa_A