Page 1 of 1
Climbing a ladder
Posted:
Sun May 27, 2007 9:31 pm
by pavel329
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?
Posted:
Mon May 28, 2007 2:09 am
by Caaz Games
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
Posted:
Mon May 28, 2007 2:29 am
by pavel329
oh.
wow thanx.
I never knew that coding was that easy.
Posted:
Mon May 28, 2007 2:30 am
by Caaz Games
I Just Like To Take The Easy Way Around Things, I Know Theres A Way Complicated Way To Do The Same Thing
Posted:
Mon May 28, 2007 2:32 am
by pavel329
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?
Posted:
Mon May 28, 2007 2:37 am
by Caaz Games
I Don't Know How To Use Collision State Things
hmm Ill Sleep Over It
Posted:
Mon May 28, 2007 3:18 am
by pavel329
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.