I need help D: with a end game when everyone on team 1 is on team 2 for a tag game

So basically I’m making a Tag game the name is still work in progress but I need help with ending the game when there’s no people on team 1 and everyone on team 2 its a tag game where if your tagged u get transported to team 2 to catch other team1 people (and if your asking hide and seek EXTREME is done I’m grinding coins rn lol)
but I need help D:

so, is this basically snowy survival?

Ina sense yes Lol
but it is a tag game with a kinda similar game with snowy survival
W pfp tho

1 Like

Lifecycle game startrelay: Everyone on specific team → increment a counter
When player gets tagged → decrement counter
when counter hits target 0 → end game

1 Like

You’ll need a lifecycle that listens for game start. Make it trigger a relay for all players. When the relay is triggered, make it increment a counter. Make this counter set a property (I’ll call it PlayersTotal). Now use the tag zone and when a player is tagged, then it triggers a trigger. Add a block to the trigger. Make a new property (I’ll call this one PlayersTagged) and make sure the starting value is 1. In the trigger, use the set property block.

set property "PlayersTagged" = (get property "PlayersTagged" + 1)

Then check if PlayersTagged is equal to PlayersTotal.

if "PlayersTagged" == "PlayersTotal":
>      end game
2 Likes

ok I’ll try
see if it works it prob will but lemme see if it fits with the game

1 Like

I’m gonna make a guide on that soon.
I realized there isn’t a guide about it…

I hope it works for you, @Spinjitzufordays99!

3 Likes

Also another good way to do it! :slight_smile:

(Im bad at using blocks so I dont do block ways)

2 Likes

could u show me photos? thanks I’m bad at reading stuff like this I can do code pretty well but I need a visual aid to help lol thx

1 Like

Sure
Screenshot 2024-11-19 111840

On game start:

Screenshot 2024-11-19 111949

Wire it to relay:

Screenshot 2024-11-19 112115
Screenshot 2024-11-19 112013

All players team 1 increment counter:

Screenshot 2024-11-19 112035

Screenshot 2024-11-19 112146
Screenshot 2024-11-19 112202

Screenshot 2024-11-19 112231

Everyone got end game:

Screenshot 2024-11-19 112251
Screenshot 2024-11-19 112308

Make counter go down by one:

Screenshot 2024-11-19 112337
Screenshot 2024-11-19 112353

1 Like

If you want to wait a few seconds for the counter to increment, you can use a wire repeater (or trigger) with a delay.

Tsym! I will edit it a bit a tiny bit which is adding 2 triggers which will turn off the endgame widget which is Runners wins! and leave Taggers Wins on and delay it by 2 sec so it has a time to register
I also have a timer on 599 sec for 10 min and it stops on 2 sec to turn off The Taggers win! and leave runners wins on but either way tsym! this is just what I need

1 Like

it wasn’t letting me say this I dunno why it said 500 error so I re-said it?
(idk)

means server error I think (server overload?)

2 Likes

sm ain’t right
the counter keeps going up
and it doesn’t stop D: idk wut 2 do

There isn’t anything repeating that relay right?

idk lemme check
and what would it say if it was repeating?

I meant you arent using a repeater or a wire relay that goes in circles with the relay:

Kinda like this:
Screenshot 2024-11-19 113817

Like a infinite loop where it keeps activating the relay

2 Likes

show us it maybe then we can help better, pictures always help (I’m getting it instantly ends?)

k





2 Likes