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

Dianthus

  • Newbie
  • *
  • Posts: 45
    • 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

  • Sr. Member
  • ****
  • Posts: 257
    • 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: 45
    • 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: August 10, 2020, 12:02:31 am by Dianthus »

Dianthus

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Outward separator problem with interaction
« Reply #3 on: August 13, 2020, 12:08:53 pm »
Okay.. So apparently the way the engine thing works is that i can only have a L-shaped outward corner if the hero can not be within the view area of it? I tried adding a 416:240 mountain around the corner so hero cant get in contact with separators and it does solve the problem, as the snap thing the separators course when the hero goes down the other separator cant be on screen.

I guess i need to have a lot of weird mountains on my map i guess xD. I probably need to find another solution of some sort.

Edit: I have given up trying to find some solution for it for now. My guess is when i get to the programming part of my game (I am currrently learning Lua), I will find some solution for it.


« Last Edit: August 20, 2020, 11:40:28 pm by Dianthus »

PeterB

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Outward separator problem with interaction
« Reply #4 on: August 24, 2020, 05:39:09 pm »
Hi, for me the most obvious way to solve this would be to split the map into smaller areas and use side of map transporters to link them together  :)

Dianthus

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Outward separator problem with interaction
« Reply #5 on: August 27, 2020, 02:57:55 pm »
Hi Peter, I have considered that, the problem basically is that my map of 640x576 basically is build around mutiple map areas thare not totally square, I for example have a castle town in the middle of the field hub of my map, which adds four L shaped corners, so I need to find some way to do non-square map areas.

Besides with the current progress of my project i wont be finished in like 4-5 years, so lets see if I ever get to actually deal with it  :D
« Last Edit: August 27, 2020, 03:05:50 pm by Dianthus »

PeterB

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Outward separator problem with interaction
« Reply #6 on: November 14, 2020, 10:03:06 am »
I know what you mean, i have been doing ALTTP remake for a few years now!!

All the maps are done, enemies about 70% complete, just trying to learn lua and scripting now to sort out interactions with NPC's, objects etc.