Page 1 of 1

The Neverhood - Game developing

PostPosted: Wed Jul 08, 2009 12:17 pm
by Camper1995
Hello all. I need really help.
I am trying to make new game called The Neverhood. (Its remake from the oreginal game, but its maked in GE. :) )

But, now, I have maked sprites how the player walk, start walk, stop walk and stay. Now, I need to do,
when the player is walking, every his step is x=x+3; or somethink like that. So, its not when I press KEY RIGHT ... x=x+3;

But only when he start to make another step...
this and when you realase key LEFT or RIGHT, not change animation of player stopping, but finish the animation like player walking and then play animation how he is stopping.

So this if you can make me, and if you press relase key left or right when is player stopping, nothings happend, no animations..

Thanks :)

Camper


I will give you ++ if you make me this. Please.. :(

Here are ged file and screenshot:
The Neverhood.zip

scrreen.jpg


Please.. :)

Re: Need help! Please, you can earn 2+

PostPosted: Wed Jul 08, 2009 12:19 pm
by jimmynewguy
That confused me, are you talking about anti-moonwalking?

Re: Need help! Please, you can earn 2+

PostPosted: Wed Jul 08, 2009 2:28 pm
by Rux
I think I may be of help, just wait a few minutes while I look at the GED file. :)
EDIT: Ok the first thing I noticed was there were no events to START the timer. :lol:
But I have an unfinished project where I used this method, so hang tight while I throw together the fixed GED.

EDIT2: OK I'm just gonna tell you what to do. First of all get rid of the timer. On draw actor type the movement code, then dont do immediate action. Instead choose Wait for frame action. Choose whatever animation you want (most likely walking) and find the frames you want him to move on. I chose 0;5;11; Remember, the frames start with 0 instead of 1, so if you want frame 7 enter 6;. Repeat for both directions. Good Luck.

Re: Need help! Please, you can earn 2+

PostPosted: Wed Jul 08, 2009 3:31 pm
by Camper1995
Thank you all. Rux, I was trying to do this and it was good, but it dont look like he walk, you know, I wanna do, when he make a step, move the player you know and
it will be looks like he is walking step by step...
:)

Jimmy: No, I am not talking about antimoon... I wanna make real walking, not just put the code, KeyDown->x=x+3;

If you know ho to do this, can you do that on that GED file or just tell me that? Please.

Thank you all. :mrgreen:

Re: Need help! Please, you can earn 2+

PostPosted: Wed Jul 08, 2009 3:35 pm
by Camper1995
and just one question. I there any way ho to write in script editor: When I relase KEY -> finish the animation and then stop?


Or how to write: KeyUp -> Right -> Script Editor -> if(animindex??== what?){...}

So if the animation is: Player WALK right01 and if you relase key right finish the animation and then play the anim. like the player is stopping.
Thx

Re: Need help! Please, you can earn 2+

PostPosted: Wed Jul 08, 2009 5:28 pm
by Camper1995
Huh, after 2hours working on this s**t I finaly make this. There is just only one problem. How to do
when the player is walking (variable stop=0;)
and when you are holding for example KEY RIGHT and player is walking and when you press KEY LEFT, turn Player on the another side and
hes still walk on another side.

:(

Here's GED:
TN Movement.zip
(1.43 MiB) Downloaded 115 times


Can someone fix this please? I will give to him +.

Thanks :]

Re: Need help! Please, you can earn 2+

PostPosted: Wed Jul 08, 2009 6:09 pm
by jimmynewguy
if you only want him to start walking if he is standing, then you were close with animindex

Code: Select all
if(animindex == getAnimIndex("stand right") ||
       animindex == getAnimIndex("stand left"))


Is how you use animindex "||" means or just to make sure you know if that isn't what you want them i'm out. I'm probably just confusing you more :lol:

Re: Need help! Please, you can earn 2+

PostPosted: Wed Jul 08, 2009 6:27 pm
by Camper1995
Thanks Jimmy, but can you make this in that game I have posted now?
Pleeease :D

:)