Actingman00
Member
How do I make a door open, transport me inside, then when I come back outside it is back to being closed. You know, how a normal door works.
I tried, but I just couldn't get it
I tried, but I just couldn't get it
Name: Door
Action Button
Graphic: Whatever you want.
Code:
@> Set Move Route: This Event
$> Turn Left
$> Turn Right
$> Turn Up
@> Wait For Move's Completion
@> Set Move Route: This Event
$> Through On
@> Wait For Move's Completion
@> Set Move Route: Player
$> Move Up/Down
@> Wait For Move's Completion
@> Set Move Route: This Event
$> Through Off
@> Set Move Route: This Event
$> Turn Right
$> Turn Left
$> Turn Down
See, I knew I was way off.CIPWM74":ijtjj3pz said:... Wow.
Anyway.
Now if this door's on the outside, we want it to teleport, add teleport command. If not add.Code:Name: Door Action Button Graphic: Whatever you want. Code: @> Set Move Route: This Event $> Turn Left $> Turn Right $> Turn Up @> Wait For Move's Completion
And to tack onto the end...Code:@> Set Move Route: This Event $> Through On @> Wait For Move's Completion @> Set Move Route: Player $> Move Up/Down @> Wait For Move's Completion @> Set Move Route: This Event $> Through Off
Code:@> Set Move Route: This Event $> Turn Right $> Turn Left $> Turn Down
I used wait 4 frames because when I hit wait that came up and it works pretty well.Regimos":316hhzb4 said:You gotta put a "Wait" command between the "Turn [direction]"s, because otherwise it'll just skip directly to turning up. I usually insert a "Wait 3 frames" but it's up to you how long you want it to pause.