Page 1 of 1

placing a lock underwater(problem)

Posted: Thu Oct 29, 2015 6:02 am
by FeMaiden
I can't figure this out for the life of me

I have a forest tile map and I have "underwater" tiles on it.
I want a locked door to block the player from escaping the water, and they find a key to open a lock that opens the door.

the problem is that I can't make any of the locks look right underwater.
if I turn it one way, its buried in the rock wall, inaccessible and if I turn it the other way, it's floating out in the middle of the tile.

how do I make it look right?

I had a similar problem in the mines, I kept trying to put a lock on a _support_wall and it did not look right, but I solved it with a mine_support_wall_button

am I supposed to put a specific kind of wall behind the lock to make it look right underwater?

Re: placing a lock underwater(problem)

Posted: Thu Oct 29, 2015 8:26 am
by Dr.Disaster
I don't think rock walls are even enough to place a good-looking lock on them. I'd go with either a door that has the lock build-in or a nexus_lock pedestal.

Re: placing a lock underwater(problem)

Posted: Thu Oct 29, 2015 9:32 am
by FeMaiden
there are doors with the lock built in?!

either way, the thing is, underwater, it's outdoors and i have 3 spear doors blocking the ladder the player needs to climb. they first have to find the key and lower the spears.

the advice on the nexus lock, that's actually what i have right now as a placeholder.
the problem is that while it looks logical, and it's not floating or clipping which is good; the nexus lock is still sitting in the middle of where the player walks. in addition, the player can just walk right through the space with the nexus pedestal.

I did a workaround where I put an invisible wall on it.
this setup works, but it doesn't look like what I want it to look like.
so my problem is more of an aesthetic problem.

I probably ought to just leave it like that, who's gonna care really? lol

Re: placing a lock underwater(problem)

Posted: Thu Oct 29, 2015 9:46 am
by Dr.Disaster
hmm .. i know in LoG 1 there are doors with the lock build into them but they seem to be gone in LoG 2 ..

Well as a replacement portal_locked with deactivated portal component and a lock added might do.

Re: placing a lock underwater(problem)

Posted: Thu Oct 29, 2015 10:18 am
by Isaac
FeMaiden wrote: how do I make it look right?
Have you tried the earlier thread suggestions for moving object positions?

You can move the lock just a bit, and have it look right.

Image

Re: placing a lock underwater(problem)

Posted: Thu Oct 29, 2015 10:33 am
by Drakkan
you can move any object with setPosition or even rotate it with some scripts so it is not a problem to do anything EXACTLY like you want. it is just quite a work :)

Re: placing a lock underwater(problem)

Posted: Thu Oct 29, 2015 10:30 pm
by FeMaiden
yes, thank you...the only question now is
"do I want to take the time just to move the lock a few pixels over?"
I mean I would like to...the way I have it set up right now, it's working but I could make it look prettier I guess