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.

Open doors and make things move?

Odense

Member

Hi,

I went on some tutorial that explains how to open a door with an event. It's the event "set move route" But when i tried this it doesnt work for me. The even is this...

@>Set Move Route: This event
:                          :$>SE:'024-Door01', 80, 100
:                          :$>Wait: 2 frame(s)
:                          :$>Graphic: "170-Door01', 0, 4, 0
:                          :$>Wait: 2 frame(s)
:                          :$>Graphic: "170-Door01', 0, 6, 0
:                          :$>Wait: 2 frame(s)
:                          :$>Graphic: "170-Door01', 0, 8, 0
@>Transfer Player:[004: House2], (009,014à, Up
 
The default doors allow you to use:
Turn Left
Wait
Turn Right
Wait
Turn Up
Wait

But to the actual answer. The problem here is that the player is transferred before anything happens to the door.
On the second event page, right below Set Move Route, you will find Wait for Move's Completion. Insert this between the transfer and the set move route. So structure is as follows:

Set Move Route
Wait for Move's Completion
Transfer Player
 

Zeriab

Sponsor

A word of warning: Be careful with your use of Wait for Move's Completion.
It waits for all move routes completion not just the doors.
This can cause hard-to-spot errors since you can add something much later to the map which can cause the player to get stuck.

The amount of frames to wait is easy to find out so I suggest you go for the safer option and waits for a certain amount of frames.
Test various values to find which you prefer

*hugs*
- Zeriab
 

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