Author Topic: Outward separator problem with interaction  (Read 98 times)

Dianthus

  • Newbie
  • *
  • Posts: 21
    • View Profile
Outward separator problem with interaction
« on: August 06, 2020, 06:56:44 pm »
Hi guys..!
I have a problem that i don’t seem to know how to solve regarding separators in solarus. I have this overworld map where i want to do an outward corner with two separators.

Areas of the overworld are divided up with trees that the player is not meant to see over. It have worked for now with separators with inward corner areas, but now i want to do have an area with an outward corner cut out and it don’t work with separators apparently?

Basically the interaction i want is that when the player goes around the outward corner the hero can only see downward on the screen when the hero is no longer on the horizontal separators area. What i got instead is two invisible separators that extend, so when the hero is near the outward corner it creates a horizontal and vertical separator that extends beyond their actual length rather than blocking the camera from moving down the horizontal or vertical corner until the hero is outside 416x240 view area of the outward separator corner. Idk that makes sense? 

Is it possible to do an outward corner cut like this into the map without this problem? I have seen the youtube video on separators by Christopho and the documentation blog. I don’t have the same problem with the inward corner cuts you see. Is it a problem like with T shaped corners and doors?

Here is the specific area. The purple are the invisible separators. When the hero goes down the outward corner there are two invisible separator walls that split up the map like that.


« Last Edit: August 06, 2020, 10:59:44 pm by Dianthus »

Max

  • Full Member
  • ***
  • Posts: 245
    • View Profile
Re: Outward separator problem with interaction
« Reply #1 on: August 07, 2020, 12:12:28 am »
Seems like you're essentially trying to create an L shaped area then, which you can't do with separators. Imagine you're walking along the north edge of the separator, headed east toward the purple arrow. As soon as you clear the separator, the camera would snap to out the hero in the middle of the screen. Also L shaped aren't supported, I think that's probably one reason why.

You could maybe make some kinda system where you use other entities to control the camera's movement, and have the camera move more slowly, but it sounds pretty tricky.

By the way I like the changes you make to the trees and stuff, looks good : )

Dianthus

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Outward separator problem with interaction
« Reply #2 on: August 09, 2020, 02:47:08 pm »
Thx.. I worked alot on my rustic-cartoon style : )

Sry for slow reponse. I am testing some technical stuff regarding doing L-shaped corners. I will be back with a response in a week or two! There should be some way of doing this, cause i have seen 3d games doing this kind of stuff with camera movement.

« Last Edit: Today at 12:02:31 am by Dianthus »