Can someone help with my 3v1 game

In my multiplayer game its 4 player ( 3v1)…my problem is only 1 of my players does damage, they all can attack but only 1 player can do damage. For the 3 player team I used the same code but I used different varibles and sprites yet only one player works. I’m wanting each player’s attacks to do damage. So what are some recomendations or ideas to help fix it. (If needed I can share my code exactly.)

welcome @PhthaloM! Can you share it?

1 Like

If there are “on [sprite] of [kind] overlap [otherSprite] of [otherKind]” blocks in your code, try dragging the “sprite” and “otherSprite” to replace any variables which relate to sprites.
I’m assuming this without the context so if you can send the link to your game maybe I can help you better.

Welcome! It would help if you post the link to your game. (In case you didn’t know, you click the three connected dots in the top right, press share, and press copy link.) Don’t worry, you’re not the only one who’s made this mistake!

1 Like

Sorry for the delay, never shared before. But I think I got it.

hey @PhthaloM . You coud use the timers extension for the attacks so that they only activate when you press, and not after,

(I did a really bad job at explaining that if you need clarification just ask.)

it’s this what you want?

Thanks that helped with the attack timing but Im trying to figure out how to code the characters doing damage part appropriately. For example, the knight, barbarian, and wizard are fighting the dragon…i want it where the warriors can’t do damage to each other just to the dragon and the dragon can do damage to all of them.

1 Like

theres a block that lets you change what sprites are, (projectiles, players, enemys and whatnot,) if you change the projectiles that you shoot to a differrnet kind, than the enemy projectiles, (I usually do allyprojectile &enemy projectile) that will work.

1 Like

Thank you guys that really helped with that but I have one more issue. Its that I coded some of the attacks to do one damage and some three or some 2 etc, but most of the attacks including the 2,3,4 damage ones only do 1 damage. Here is the link

1 Like