Game Development Community

Wall sticky - is this a valid concept for implementing?

by CdnGater · in General Discussion · 06/25/2008 (11:33 am) · 1 replies

I am trying to understand what would go into wall sticking & corner shooting. Games like Gears of War and Mass Effect allow your character to duck next to a wall, shoot around the end, etc.

I am thinking of something like this:

Create a DIF and add special 'sticky' polygons where you want to stick to, like around a door, or a low wall.

Send out collision rays in the direction your going, if they collide with a sticky polygon and your within say 2 units, then you stick, until you move away.

Now once stuck, you can only move along the polygon in its direction, (except you can move away to unstuck).

Lets see, if your crouched, not at the ends of the polygon and the top is low, then clicking shoot or zoom would activate the appropriate animation and allow you to look and shoot over the top.

Now if your at the end of a polygon how do you peek around. I'm thinking something like over the top, press shoot or zoom and it would activate the appropriate animation and allow you to look or shoot around the corner.

Problem: Doorway, one end would allow you to look though the door (which is correct) but the other end would end at the wall. Humm, I guess could assign flags or something to the polygon to say which ends you cannot look around.


Does anybody know of another way or knows the concept for implementing this.

#1
06/25/2008 (1:18 pm)
Triggers could be used but it would be a nightmare placing them in a large number of areas.