spiderman syndrome: jumping and wall clinging

Non-platform specific questions.

spiderman syndrome: jumping and wall clinging

Postby DollMaster » Tue Mar 06, 2007 4:41 am

Ok two things, I went through and made an actor that jumps. And the platforms stop him. However...

1)occasionally, he will perform a super jump and just darts way up. its usually, the first time i press the jump button. if i hold in the jump button, he does not dart up.

ALSO, upon playing around with it, if i take off repeat, it takes multiple jump button pushes in order to make him jump.

2)if he jumps into a wall, he will cling to it if i continue to walk towards it. is there anyway to get rid of this?
DollMaster
 
Posts: 65
Joined: Fri Jun 16, 2006 2:38 am
Score: 2 Give a positive score

Postby DilloDude » Tue Mar 06, 2007 8:40 am

What code are you using for the jumping and the jump variable?

To fix the wall clinging, add Left and Right side collision separately. Add these parameters for the physical response.
Code: Select all
PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1, 1, 1, 1);

That works well if you are using xvelocity for the movement. If you are just changing the x value, you might want
Code: Select all
PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_SPECIFIED_MASS, 1, 1, 1, 1);
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Postby DollMaster » Wed Mar 07, 2007 1:16 am

ok somehow i fixed the jumping...by playing around with it, i do not know how.

now for the wall clinging. before he would stick to the walls if you pressed towards it. now, by adding what you told me to add, he slowly walks up the wall. what i want for him to do is just fall down when he comes to a wall.

also, can you help me understand what specified mass, and calculated means? i dont really understand that screen or anything in it. i know how to make an obstacle from the tutorials and forum, but i do not understand why.
DollMaster
 
Posts: 65
Joined: Fri Jun 16, 2006 2:38 am
Score: 2 Give a positive score

Postby Sgt. Sparky » Wed Mar 07, 2007 1:34 am

E-mail me the .ged and data folders and I will set it up for you :D
btw, do you have MSN?
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby DollMaster » Wed Mar 14, 2007 1:26 am

DilloDude wrote:What code are you using for the jumping and the jump variable?

To fix the wall clinging, add Left and Right side collision separately. Add these parameters for the physical response.
Code: Select all
PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1, 1, 1, 1);

That works well if you are using xvelocity for the movement. If you are just changing the x value, you might want
Code: Select all
PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_SPECIFIED_MASS, 1, 1, 1, 1);


Ok, I finally got this to work. Everything works perfectly now. Thank you two fellers.
DollMaster
 
Posts: 65
Joined: Fri Jun 16, 2006 2:38 am
Score: 2 Give a positive score

Postby Sgt. Sparky » Wed Mar 14, 2007 4:22 am

could you please test the game I am workin' on at: http://game-editor.com/forum/viewtopic. ... 7364#17364
for glitches or anything?
:D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest