Help with creating areas?

Hi, so is there a way to create small areas WITHIN other areas in one scene? For instance, in an RPG such as Zelda, you can enter a house, then exit the house and the outside will be as it was before you entered the house (EG, destroyed enemies will stay gone). Is there a way to do this in the SAME scene?

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Sure. You could locate the 'inside of the house' area in a totally different part of the scene, that you can't see from the main play area. When your player touches the area/trigger to enter the house change it's X/Y coordinates to the 'inside of the house' area. You'll need a Control Camera Behavior on the player, but I assume you'd have that anyway. Then when they leave the house change their X/Y coordinates back to the main play area.

    Hope that makes sense...

  • ReMasteredGamesReMasteredGames Member Posts: 101

    @jamie_c said:
    Sure. You could locate the 'inside of the house' area in a totally different part of the scene, that you can't see from the main play area. When your player touches the area/trigger to enter the house change it's X/Y coordinates to the 'inside of the house' area. You'll need a Control Camera Behavior on the player, but I assume you'd have that anyway. Then when they leave the house change their X/Y coordinates back to the main play area.

    Hope that makes sense...

    Fantastic, thank you!

    I'm not sure where to put it though, because it's a very large top down level, and there's not really any space left in the level:L

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
  • ReMasteredGamesReMasteredGames Member Posts: 101

    @jamie_c said:
    Just make the level/scene bigger... :)

    Okay, do you know if there's any way to force the camera to stop at a certain point? i have the camera follow the player from the center of the screen, so is there a way to have the camera stop moving when the player reaches the Wall actor (border) so that the player can't actually see the extended scene?

  • TosanuTosanu Member, PRO Posts: 388

    i would say just have barriers in place and have the scene extend beyond the walkable zone. Thats simpler than any code (forests outside city limits, fields, just background elements) and it makes the world feel a bit more open. Just leave enough space between the two parts of the scene that they arent visible from the other one.

Sign In or Register to comment.