Climbing a ladder

Non-platform specific questions.

Climbing a ladder

Postby pavel329 » Sun May 27, 2007 9:31 pm

I am making an older donkey kong game.
like the one where mario is called jumpman.


I have the levels set up and everythng is great.
But idk how to make it where when mario pushes up while next to or on the ladder.He actually goes up.

So how do i make him go up the ladder?
Drugs r bad.
Mgaay?

Image
User avatar
pavel329
 
Posts: 269
Joined: Thu May 25, 2006 2:05 pm
Location: Behind you
Score: 5 Give a positive score

Postby Caaz Games » Mon May 28, 2007 2:09 am

Like This...I Think

Create A Variable Called Ladder
Mario -> Key Down (Up) -> Script Editor
Code: Select all
If(Ladder == 1)
{
      y = y - 5;
}

Mario -> Collision (Ladder) -> Script Editor
Code: Select all
Ladder = 1;

Mario -> Collision Finish (Ladder) -> Script Editor
Code: Select all
Ladder = 0;


I Hope This Helps
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby pavel329 » Mon May 28, 2007 2:29 am

oh.

wow thanx.
I never knew that coding was that easy.
Drugs r bad.
Mgaay?

Image
User avatar
pavel329
 
Posts: 269
Joined: Thu May 25, 2006 2:05 pm
Location: Behind you
Score: 5 Give a positive score

Postby Caaz Games » Mon May 28, 2007 2:30 am

I Just Like To Take The Easy Way Around Things, I Know Theres A Way Complicated Way To Do The Same Thing
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby pavel329 » Mon May 28, 2007 2:32 am

Lol same here.


Oh and do you know how to make it where i have to push up first to make him climb it?

I don't think the key down function would work here.


Is it something like collision state or that kinda thing?
Drugs r bad.
Mgaay?

Image
User avatar
pavel329
 
Posts: 269
Joined: Thu May 25, 2006 2:05 pm
Location: Behind you
Score: 5 Give a positive score

Postby Caaz Games » Mon May 28, 2007 2:37 am

I Don't Know How To Use Collision State Things :( hmm Ill Sleep Over It
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby pavel329 » Mon May 28, 2007 3:18 am

lol no i didn't mean I HAD to use them.
I was just wondering how to make it where i have to push up to go up the ladder.Not just if i collide i magically fly up the ladder.
Drugs r bad.
Mgaay?

Image
User avatar
pavel329
 
Posts: 269
Joined: Thu May 25, 2006 2:05 pm
Location: Behind you
Score: 5 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest