See Through Walls

by Crazy Star


Posted on September 15, 2006 at 11:47 AM



This demonstrates a method of allowing the player to see through walls in a 45 degree topdown perspective. If anyone has any ideas on how to improve the speed of this then I'd be pleased to know. For the next version I plan to add isometric tiles only I'm having some trouble figuring out a bug that you can see if you download this file:
<a href="http://www.64digits.com/download.php?name=seeTrough_isometric3.gm6&id=8869">http://www.64digits.com/download.php?name=seeTrough_isometric3.gm6&id=8869</a>;

If you figure out a way to get rid of the extra tile row bug let me know.

One last thing. Please don't steal the tiles used in this example. I made them myself and plan to use them.

<b>Edit:</b>
A tip on making this faster: Only redraw the surface if the mouse has changed position or the objects has moved. I did not include this in the example for simplicity (nah I'm just lazy - check next version)

Also, I figured out what was wrong with the isometric one - I needed to sort the tiles by y in the room editor. Expect an update anytime soon...


Eternal commented September 15, 2006 at 12:21 PM
There is an example of this by Mark Overmars on the Game Maker site.
frenchcon1 commented September 15, 2006 at 12:53 PM
where?
kevboh commented September 15, 2006 at 3:54 PM
I thought it was cool.

Could be very useful.
9/10
Shork commented September 15, 2006 at 4:27 PM
The Overmars example creates an object with the same sprite as the player object, but at a negative depth and partial transpancy, directly over the player object. This way it looks like you can see the player through the wall. The screenshot of this doesn't look like the Overmars example.
Flea1991 commented September 15, 2006 at 4:50 PM
I love it! [:D]
Flea1991 commented September 15, 2006 at 5:12 PM
Oops! 10/10 [:P]
Crazy Star commented September 15, 2006 at 5:30 PM
Ooh THAT example. Now I understand. For those who doesn't <a href="http://gamemaker.nl/tutorials/threed.zip">here it is</a> - it's the isometric one with the ball in the maze. My example doesn't only show objects hidden under tiles it also shows tiles hidden under tiles. Big difference if you ask me.

Thanks for all your comments people
miky commented September 15, 2006 at 9:50 PM
Pretty cool.
zero koll commented September 22, 2006 at 7:19 PM
Zelda sprites!!!

I love that efect!!

1000000000/10!!!


Were did you get those backgrounds?
Pico commented September 24, 2006 at 3:16 AM
9/10 pretty good.
E-Magination commented November 05, 2006 at 3:57 PM
I get 0 fps.
Flea1991 commented December 08, 2006 at 6:43 PM
Neat.

-Flea
David Lindberg commented April 20, 2007 at 1:49 PM
If anyone has any ideas on how to improve the speed of this then I'd be pleased to know.
Quote
Just turn up the room-speed... lol...