JUST 2
Lifecycle, Relay, Checker, and 2 wire repeaters. Game start – all players — run check.
Checker: item amount, watermelon, greater than 0
Checker, wire repeater01: check passes – send pulse (0.1 seconds)
wire repeater01, checker: Received pulse run check
Checker, wire repeater02: check failed – send pulse (0.1 seconds)
wire repeater02, checker: Received pulse run check
(constantly check if a player has food)
get a game overlay
not active on game start, button, button overlay: “eat food,” scope: player
connect with previous wire repeaters 01, 02
01, game overlay: received pulse — show overlay,
02, game overlay: received pulse — hide overlay,
counter, property
Property: “Eat food” property scope: player
Counter starting value 0, scope: player, connected to property “eat food”
Overlay pressed:
item granter (-1 watermelon)
counter (increment)
Lifecycle, Relay, Checker, and 2 wire repeaters. Game start – all players — run check.
Checker: value of property, “eat food”, greater than 0
Checker, wire repeater03: check passes – send pulse (0.5 seconds)
wire repeater03, checker: Received pulse run check
Checker, wire repeater04: check failed – send pulse (0.5 seconds)
wire repeater04, checker: Received pulse run check
health granter: health, then shield, amount is 2
checker to health granter: check passes grant health
new wire repeater set to 10 seconds
game overlay, new wire repeater, counter: button pressed – send pulse, received pulse – decrement counter.
(I don’t have time to explain this, I need to go to class, trust me it works) tell me if it doesn’t… lol