Jump to content

[AOG] Lift System with Events


Ainz Ooal Gown

Recommended Posts

Description:

This is basically a fancy lift system that displays doors opening and closing then warping a player. This system can be copied and paste / used many times, as you will only need to change the "Warp" points in "Lift Up" (lift 1) and "Lift Down" (lift 2).

 

Video:

https://ascensiongamedev.com/resources/filehost/a58c6c76386b9421958fa3337aba5509.mp4

 

Process:

  1. A player can walk up to a lift, press action button press to call the lift.
  2. Lift doors will then open allowing the player to enter the lift.
  3. Lift doors will then close.
  4. Player is then warped to another lift located anywhere in your world.
  5. Doors to lift open ejecting the player, then closing again. :)

 

Issue:

Only one I found so far, when triggered all lifts in game visually change for the Player ONLY. This isn't a big issue, as the player wont see any of the other lifts.

 

Build:

First we need to make a player variable to hold the lift stage process, so create a new player variable and call it "Player Lift".

Second we create a Player Lift Switch for a On/Off condition we use later.

 

  • Player Variable: Player Lift
  • Player Switch: Lift

 

Now we need a start and finish point for the lift. This can be on the same map or anywhere in your world, as well as this system can be replicated (used) many times.

 

(Tiles are not included in tutorial, sorry)

 

Setting the map tiles for lift:

  Reveal hidden contents

 

Next we make a map event. This will be the "Lift Up" event (we will make the second lift later based on the first one).

  Reveal hidden contents

 

Each event page  uses the "Player Lift" variable we created earlier, which allows the page to run if the condition is met:

  Reveal hidden contents

 

This event has 17 pages, but most of them are only stages for the doors to open and close. We use the "Player Lift"variable to also set what stage of the lift process we are currently on:

 

Page 1:

  Reveal hidden contents

 

Pages 2 - 5:

  Reveal hidden contents

 

Page 5 is different as now the doors to the lift are fully open. So we want the "Trigger" to be set to "Player Touch" so that when the player steps into the lift the process continues.

 

NOTE: If the player does not trigger page 6 by walking into the lift, the lift doors for every lift event in your game will stay open. To get around this you can create a "Common Event" to check this:

  Reveal hidden contents

 

Page 6:

  Reveal hidden contents

 

Now we have the player in the lift we want to close the doors, pages 7 - 9:

  Reveal hidden contents

 

Page 10 we now warp the player to the second lift event, but we make the warp point 2 spaces above the event and make the player face down, as well as have a condition on the "Player Lift" Switch:

  Reveal hidden contents

 

Pages 11 - 13 doors open in second lift:

  Reveal hidden contents

 

Page 14:

  Reveal hidden contents

 

Pages 15 - 17:

  Reveal hidden contents

 

Awesome!

 

If you have got this far then I have to tell you we have another 17 pages to go... I joke! Now we have the "Lift Up" or (Lift 1) complete we can use it as a template for "Lift Down" (Lift 2).

 

So Save the event the copy and paste the event to the place you want the second end of the lift you want to be!

 

Once you have pasted the lift we have to change a few things:

 

Set the "Warp" point on page 10 to "Lift Up" (Lift 1) position but 2 spaces above, like so:

  Reveal hidden contents

 

We need to change the Player Switch "Lift":

  Reveal hidden contents

 

Complete!

 

Now you should have a fully working Lift System! You can copy and paste the lift as many times as you want, and you just need to set the "Warp" points!

 

Event system is very powerful and with it you can accomplish many features the core engine does not have :)

 

Enjoy!

 

 

Link to comment
Share on other sites

  On 4/6/2019 at 8:11 PM, A l m a said:

Many thanks ~ โ™ฅ
And great job with this system (โœฟโ— โ€ฟโ— )

Expand  

 

Haha thanks :D

 

Took some doing to make sure I covered everything. Lol

 

Hoping it will inspire people to use the power of the event system, as can add many features to your game using it!

Link to comment
Share on other sites

I personally would make the lift more like pokemon where you go to a seperate map and leave the map and arive at your floor destination. You can even select your floor using a multi select dialogue.

 

Good tutorial and interesting use of the event editor though! 

Link to comment
Share on other sites

  On 4/6/2019 at 9:00 PM, Kibbelz said:

I personally would make the lift more like pokemon where you go to a seperate map and leave the map and arive at your floor destination. You can even select your floor using a multi select dialogue.

 

Good tutorial and interesting use of the event editor though! 

Expand  

 

Thats a good idea, could be done by adding a option set to pick the floor. Why I did it based on a variable to set the lift process so it can be be extended. Would also need to change the Player Switch Lift to a variable for the defined floors I think.

 

Might add an extention to the tutorial with that Kibbelz, thanks :D

Link to comment
Share on other sites

  On 4/6/2019 at 9:37 PM, Little Pixel said:

would this work with the interaction of multple players though trying to use at the same time ?

Expand  

 

Iโ€™ve not tested it with multiple players, but in theory it should work with no issues. If you have the map as a safe zone then the players can move through eachover so can call the lift at the same time and interact with event at same time. If not a safe zone then players canโ€™t walk through each over so have to wait in line for player in front to enter lift event... if that makes sense lol

 

I will do some testing and let you know :)

Link to comment
Share on other sites

  On 4/6/2019 at 9:42 PM, Ainz Ooal Gown said:

 

Iโ€™ve not tested it with multiple players, but in theory it should work with no issues. If you have the map as a safe zone then the players can move through eachover so can call the lift at the same time and interact with event at same time. If not a safe zone then players canโ€™t walk through each over so have to wait in line for player in front to enter lift event... if that makes sense lol

 

I will do some testing and let you know :)

Expand  

what about the animation cycles ?

Link to comment
Share on other sites

  On 4/6/2019 at 9:49 PM, Little Pixel said:

i only ask because iv been tryig to perfect such a system for my project :)

Expand  

 

Actually now that I think it will work(visually) for just the individual for animations and whole process, as it is using a "Player" variable and not a "Global". So only the player will see the lift change (doors open/close and such).

 

EDIT: Just tested and works so that only the player using lift see changes (doors open/close) this is because its based on a player variable. If you did global then everyone would see change, but then you would have to have a global variable for each lift you make for the stages/process.

Link to comment
Share on other sites

Looks great but lifts aren't in the timezone of my game ;-; (or correct me if I'm wrong did they have lifts in 10th century?)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
ร—
ร—
  • Create New...