Help with something in my game that I'm trying to do

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… :sweat_smile:

Update:

1 Like

Uhhh

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.

1 Like

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

2 Likes

Make a player coord. device deactivate the trigger when the player moves.

1 Like

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.

Step 1

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"

Step 2

Grab a coord. device and make it update properties X and Y.

Step 3

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 :orange_square:)

2 Likes

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 :man_shrugging:

Yea, but this system can do that without having to do that. [1]


  1. oh mah gawd that sounded sdoobid ↩︎

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