SRL Archive - Reflection Help

Opening Doors with Reflection?


TViYH

2008-09-25 19:57:50

I'd say this has been discussed before.

But. How would I open a door using reflection?

Bobarkinator

2008-09-25 20:05:48

Get the tile of the door and use that.

TViYH

2008-09-25 20:06:36

How might I do that?

Since the door is between the two tiles.

xxchronic2007xx

2008-09-25 20:49:37

You could use an SRL backup to open the door for you, but i'm pretty sure the door is located on a tile..

Method

2008-09-25 21:00:14

From: TheVoiceInYourHead
How might I do that?

Since the door is between the two tiles.


You can figure out the two tiles, so try both of them to see which one works better.

HyperSecret

2008-09-25 23:47:54

get the two tiles, then get the midpoint of the diagonals or of the sides and do some type of color check at that point to see if it is a door, or a couple get colors +- a pixel…

Narcle

2008-09-26 01:00:05

  tP := TileToMS(Point(3208, 3214), 2);
tD := TileToMS(Point(3207, 3214), 2);

tP := Point((tP.x+tD.x)/2, (tp.y+tD.y)/2);

That's what I use in my Flax spinner.

n3ss3s

2008-09-26 08:26:43

Let's say you are facing to the door, e.g if the door is in north, facing south and north, your map should be north or south, depending are you above or below the door.

Now, you will use the tile of the two tiles that is most far away from you.

This way you will hover on the ladder for sure when you hover on the tile :)

Nava2

2008-09-29 07:44:52

Or just wait till TTiles come out and you can use half tiles ;).

n3ss3s

2008-09-29 08:19:05

TTiles?

If by that you mean a record of a tile, no, what does that change?

If it's something in the client you call TTile, I'm interested…