Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Nooby door question

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 :(
 
... Wow.
Anyway.
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
Now if this door's on the outside, we want it to teleport, add teleport command. If not add.
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
And to tack onto the end...
Code:
@> Set Move Route: This Event
$> Turn Right
$> Turn Left
$> Turn Down
 
CIPWM74":ijtjj3pz said:
... Wow.
Anyway.
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
Now if this door's on the outside, we want it to teleport, add teleport command. If not add.
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
And to tack onto the end...
Code:
@> Set Move Route: This Event
$> Turn Right
$> Turn Left
$> Turn Down
See, I knew I was way off.

Well not way off but, thanks :)
 
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.
 
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.
I used wait 4 frames because when I hit wait that came up and it works pretty well.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top