Here is the code which was the most successful:
◆Show Choices:Push, Pull (Window, Right, #1, #2)
:When Push
◆Play SE:Equip2 (90, 60, 0)
◆Set Movement Route:This Event (Skip)
: :◇Move away from Player
◆Set Movement Route:Player (Skip, Wait)
: :◇1 Step Forward
◆
:When Pull
◆Play SE:Equip2 (90, 60, 0)
◆Set Movement Route:Player (Skip)
: :◇1 Step Backward
◆Set Movement Route:This Event (Skip, Wait)
: :◇Through ON
: :◇Move toward Player
: :◇Through OFF
◆
:End
The push method works extremely well and is very smooth, but...
There are two problems with this method:
1. If I "Pull" until I have my back to a wall with the barrel in front of me, I can still "Pull" one more time and the barrel ends up on top of me. It could be part of the gameplay, I guess, but I'd rather it weren't. It feels unnatural and makes puzzles easier to solve.
2. If I "Pull" the barrel, then try to "Push" again, nothing happens. I have to move a little before i can interact with the barrel again. I suspect it is because of the "Through ON" bit.
EDIT: For the first issue, I tried using a conditional branch that asks "did the player's X,Y change?" It didn't work. I wonder if the player's X,Y doesn't fully update after "1 Step Backward". That would explain the second problem I'm having, and why most of my attempted workarounds turned up bunkus.
◆Show Choices:Push, Pull (Window, Right, #1, #2)
:When Push
◆Play SE:Equip2 (90, 60, 0)
◆Set Movement Route:This Event (Skip)
: :◇Move away from Player
◆Set Movement Route:Player (Skip, Wait)
: :◇1 Step Forward
◆
:When Pull
◆Play SE:Equip2 (90, 60, 0)
◆Set Movement Route:Player (Skip)
: :◇1 Step Backward
◆Set Movement Route:This Event (Skip, Wait)
: :◇Through ON
: :◇Move toward Player
: :◇Through OFF
◆
:End
The push method works extremely well and is very smooth, but...
There are two problems with this method:
1. If I "Pull" until I have my back to a wall with the barrel in front of me, I can still "Pull" one more time and the barrel ends up on top of me. It could be part of the gameplay, I guess, but I'd rather it weren't. It feels unnatural and makes puzzles easier to solve.
2. If I "Pull" the barrel, then try to "Push" again, nothing happens. I have to move a little before i can interact with the barrel again. I suspect it is because of the "Through ON" bit.
EDIT: For the first issue, I tried using a conditional branch that asks "did the player's X,Y change?" It didn't work. I wonder if the player's X,Y doesn't fully update after "1 Step Backward". That would explain the second problem I'm having, and why most of my attempted workarounds turned up bunkus.