Walls and pressure

Talk about making games.

Walls and pressure

Postby Hedfone » Thu Feb 19, 2009 3:35 am

Hey everyone,
i've found that if my character walks into a wall in mid-jump then it will stick to the wall until the direction is released.

I'm using a really basic jump variable (if jump = 0 then let jump etc etc)
and an even more basic movement system (on key down x+=2)

Does anyone know what's wrong and how i might fix it?
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Re: Walls and pressure

Postby skydereign » Thu Feb 19, 2009 4:13 am

Code: Select all
PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1, 1, 1, 0)

This should work... It is a physical response with the collide actor at 0. There are other methods depending on your walls, ground, and gravity. If this does not work, then I can explain other methods.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Walls and pressure

Postby BlarghNRawr » Sun Mar 08, 2009 7:24 pm

just make collision with left or right side of wall, then make gravity the same as whatever it is in your game

(i dont remember the exact code because i havent done it in forever :oops: )
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest