Climbing problems

You must understand the Game Editor concepts, before post here.

Climbing problems

Postby an0nyme » Mon Nov 16, 2009 2:26 am

I'm trying to make my character climb a rope, and now he can move up and down the rope when I press the up and down arrows and I have an animation for when he climbs.
The problem is that my character climbs behind the rope! The rope appears in front of my character and he goes up behind it. Also, if I press space bar (jump) and jump on the rope my character just goes up the rope without me pressing up. It's like he slides to the top of the rope, and still behind it.

Please help me! This game is for a school project and I don't have much time left... :?
an0nyme
 
Posts: 7
Joined: Sun Nov 15, 2009 1:21 am
Score: 0 Give a positive score

Re: Climbing problems

Postby skydereign » Mon Nov 16, 2009 4:51 am

The behind the rope is a zdepth problem. To fix it just go to the rope actor, and in the actor control panel, you should see a slider with zdepth by it. Slide that to the left, and that will make its animation appear behind your player. For the climbing rope jump problem, it depends on how you are doing the jump and the rope itself. I am a little busy so if you can give the specifics it will be easier for me to help. What I would need to know is the events used in your climbing code. You could also post the ged and data folder on this topic and I could fix it and give it back to you.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Climbing problems

Postby an0nyme » Tue Nov 17, 2009 12:08 am

For the climbing, I've followed this topic: viewtopic.php?f=4&t=3438&start=0

I just copied the codes and put them in the right places and my character can climb the rope when I press up in front of it but if I jump on the rope he just flies to the top of it.
an0nyme
 
Posts: 7
Joined: Sun Nov 15, 2009 1:21 am
Score: 0 Give a positive score

Re: Climbing problems

Postby skydereign » Tue Nov 17, 2009 12:41 am

Not sure which section you used, or maybe you used all of it, but here is a demo of it working. I did not add animations, but the af technique that Sgt. Sparky used would work here too. Basically you need to set the yvelocity equal to zero, while in the climbing range, that way you won't fall, and gravity will not have an impact. There are other ways to do ladders, like if you want to only climb when you have pressed up. This would make it so you don't automatically climb, or hold your position on the ladder, which for the most part can be easier. If you want me to add animations to this demo, just ask.
Attachments
ladderDemo.zip
(12.76 KiB) Downloaded 128 times
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Climbing problems

Postby an0nyme » Tue Nov 17, 2009 7:51 pm

Thank you so much! I have an animation for when my character is climbing and I would like it to change back to the original one when he jumps off the rope on a platform at the top. I would appreciate it a lot if you could help me write a code for that. :D
an0nyme
 
Posts: 7
Joined: Sun Nov 15, 2009 1:21 am
Score: 0 Give a positive score

Re: Climbing problems

Postby Superbeni » Wed Nov 25, 2009 6:54 am

Put this in the code when he jumps off the rope:

Code: Select all
ChangeAnimation("Event Actor", "name", FORWARD);


I hope this helps, but I´m not sure what you mean.
User avatar
Superbeni
 
Posts: 130
Joined: Sun Aug 02, 2009 1:23 pm
Location: Vienna, Austria
Score: 31 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron