Game Development Community

How to overcome this...

by Chris Sargent · in Torque 3D Professional · 10/20/2009 (11:09 pm) · 8 replies

I created a sample land mass today and put in my water plane. Nothing fancy this is just a test run.

i963.photobucket.com/albums/ae120/ssgtsgt/screenshot_001-00000.png
After zooming around I noticed this at the edges of my land mass:

i963.photobucket.com/albums/ae120/ssgtsgt/screenshot_001-00001.png
Aside from the obvious of restricting my player is there anything else I can do so my player may not be able to gain access to the underside of my terrain if they are in the water?

Thanks,

#1
10/20/2009 (11:33 pm)
Create an invisible forcefield with a physical zone, set velocitymod to around -2 should do it.

Or

Put up signs saying "minefield" and place triggers along the edge which kill the player if they enter it. %obj.damage(9000);
#2
10/20/2009 (11:36 pm)
I like the way you think with the minefield Steve, but one of my missions is going to be a string of islands the player will be able to travel back and forth to each island, the game is going to be a RPG.

That is why I was / am trying to figure a way to solve this as it would look a little funny for my islands with the player traversing the sea.
#3
10/20/2009 (11:40 pm)
You've got nothing to worry about, at least on the proper side of the terrain. The player still collides with the terrain if they're in the water, so they won't swim through the terrain and pop out under it.

When it comes to figuring out how to keep your player from walking off the edge of the world there are a few options, but it will mostly be influenced by the design of your game. There's increasing the terrain size, setting up mission area that doesn't let the player exit, creating barriers that player can't get past or terrain that's too steep for the player to climb just to name a few.
#4
10/20/2009 (11:43 pm)
Thanks Scott,

I do have nothing to worry about if they are on the terrain, however if they step off into the water they will see what i'm showing in my second screenshot and that is what I don't want them to see it doesn't even look natural.

And if I follow through with my string of islands the player will see that anytime they are within visual range of another island.
#5
10/20/2009 (11:52 pm)
Yeah I see where you're going with it now, I was typing that up when you mentioned that. I actually have a suggestion that could work out for you, depending on the size of area you want to cover of course.

What I would do would be make a larger terrain and then raise the waterblock. Then you can just raise different sections of the terrain up past the water level to have islands in the water. Combine that with fog effects and shaders to mask the players vision some under water along with possibly a certain depth you don't want the player to sink past and you should be in business.
#6
10/20/2009 (11:55 pm)
now that could work i never thought of that. I'll give it a try!

thanks!
#7
10/21/2009 (12:01 am)
No problem, I'll be interested to see how well it works out myself.
#8
10/21/2009 (12:14 am)
well i just posted another thread seems my copy of T3D took it upon itself to solve my problem in a very creative way hehehe.