Ladder?

Game Editor comments and discussion.

Ladder?

Postby Lacotemale » Mon Feb 20, 2012 7:56 pm

How does one make a ladder that works?

I want to make them work for my (work in progress)game: viewtopic.php?f=4&t=9509

I also need to get a walking animation working but ladders are more important to me right now. :)

+1 for anyone who helps me! :wink:

I should mention that I have already attempted this using yvelocity++; and yvelocity--; ... in my mind one of these should have worked!
User avatar
Lacotemale
 
Posts: 285
Joined: Wed Dec 08, 2010 7:47 pm
Location: /home
Score: 7 Give a positive score

Re: Ladder?

Postby SuperSonic » Mon Feb 20, 2012 9:11 pm

Put this in a collision event with your player and the ladder. Set it to repeat :wink:
Code: Select all
char * key = GetKeyState();
if(key[<put the key ID you use for climbing here>])
{
    y -= <put a number here>;
    //Do any animation changes you need here
}

Hope that helps :D
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: Ladder?

Postby Lacotemale » Tue Feb 21, 2012 12:50 pm

Thanks alot! Why was I using yvelocity when all I had to use was y-=?! LOL :roll:

Silly me! :D +1 for the help anywayz!
User avatar
Lacotemale
 
Posts: 285
Joined: Wed Dec 08, 2010 7:47 pm
Location: /home
Score: 7 Give a positive score

Re: Ladder?

Postby SuperSonic » Wed Feb 22, 2012 12:07 am

No problem :wink:
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest