So… I’m trying to make a lil system where a trigger loop is constantly giving the player energy but if the player moves, the trigger loop does not give them energy
I dunno if I explained that properly…
Update:
So… I’m trying to make a lil system where a trigger loop is constantly giving the player energy but if the player moves, the trigger loop does not give them energy
I dunno if I explained that properly…
Update:
Use this guide on looping.
Please Never Use Repeaters (and a guide on looping) - Devices - Gimkit Creative
Then just make the repeater give the player energy using a wire.
Edit: Yeah I don’t know how to do that
Create a trigger loop, and have the loop end when Receiving on “Player_Moved.” Have a Player Coordinate device transmit on “Player_Moved” when his coordinates change.
Ok, I think my brain was acting dum and now I think I realized what I can do cus I need the trigger loop to break once the player moves and continue once they stop but I dunno if what I’m thinking of will work
Make a player coord. device deactivate the trigger when the player moves.
How am I gonna automatically turn the loop back on once the player stops moving?
So you’re saying while the just stay still they gain energy and when the start walking the energy stops gaining and instead you lose it
Okey.
Grab a trigger, a relay for all players, and a lifecycle for game start.
Event Occurs (Lifecycle) --> Trigger Relay
Relay Trigger --> Trigger
Then make the trigger loop every second.
Open Blocks:
If ([Get Property DelayedX] = [Get Property X]) and ([Get Property DelayedY] = [Get Property Y])
Do Broadcast message on channel "grantEnergy"
Grab a coord. device and make it update properties X and Y.
Make a delayed x and delayed y property.
Idk how to do this, but I think it’s in this guide.
How to Create Fall Damage in GKC Platforming! (5/10 )
but my main question now is how do I make the trigger loop automatically reactivate once the player stops moving?
Is there a way to check if the coords keep changing and so when the coords go at a standstill it reactivates?
I dunno
Bardy is there a way to check if the coords are not changing? so when they are not changing the energy reactivates
No, it checks whether the delayed coordinate is the same as the normal coordinate, so then it grants the energy.
Erm… can this system be less… technical and complex AKA no properties?
So that works for when the player stops moving?
Ah char you will be fine I am new to properties, but can say this will be easy