Entering a building

Hi!

I’m developing a RPG Top Down game, and I want to let the player get into a store.

To show the inside of the store I don’t know what I need:

The player will be in front of the shop, they will press the E key, and after that you will see the player inside the shop, like the picture above.

How can I show the player inside a shop? I problem is that I don’t know how to show the shop. As another level? As a level streaming? As… something that I don’t know yet?

Thanks!

1 Like

If you’re just going to totally switch levels like that, you could just use ‘open level’.

But if you use streaming or level instances, you can walk from the main level into the shop.

The in-built template “TopDown” project shows a way you can leverage a material named “M_Cutout” for showing internal space of a room ….

1 Like

I don’t understand that. What do you mean with walk?

1 Like

Your character, walks into the shop?

Or do you mean show the shop with no ceiling, like @thor_hzf is saying?

@ClockworkOcean Have you played The Legend of Zelda: A Link to the Past (SNES)? When Link goes into a shop, first you see Link in front of the building, and then you see him inside a store.

Sorry, I don’t know how to explain it better.

In front of the building:

After link goes Inside:

1 Like

Yeah, unless you want the shop ceiling to becomes transparent, that’s changing levels :slight_smile: ( in some way )

1 Like

Either OpenLevelByName, or SetActorLocation and switch the camera upon overlapping a trigger volume placed just inside the door. Put the “shop” under the landscape or somewhere else/in the distance where it won’t be seen.

If you physically walk in the building, the interior will be constrained by the physical dimensions of the building. If you move the character to a different location, you have a lot more options for interior dimensions and design.

1 Like