Page 1 of 3

The Neverhod 2 - moonwalking :(

PostPosted: Sun Jul 12, 2009 4:15 pm
by Camper1995
New problem:

Hi all, I am developening my game The Neverhood 2 nad it looks very good now, but I have one very big problem and that is moonwalking.
Its not hart to remove moonwalking but when I have 3 defferent animation of Klayman (thats player) how he start walk, walk and stop walk, how to remove
moonwalking now? I was trying to remove moonwalking more than 2 days, but I cant... :(

here is file of The neverhood. If can anyone look at that and help me... :(
http://rapidshare.com/files/256435077/Levels.zip.html


Image 2.jpg

Image 1.jpg

Re: My boring questions :-D

PostPosted: Sun Jul 12, 2009 4:40 pm
by MrJolteon
Add two actors with the same animation, like "SwitchOn" and "SwitchOff". Place them Exactly in the same place and make one of them fully transparent,
add when you click the other, the window light(if it's an own actor) turns fully transparent or fully visible depending on which button actor you made transparent, the code will be like this:
Code: Select all
ChangeTransparency("Event Actor", 1.000000);
ChangeTransparency("buttonoff", 0.000000);
ChangeTransparency("WindowLight", 0.000000);

Re: My boring questions :-D

PostPosted: Sun Jul 12, 2009 4:41 pm
by Camper1995
Yees man, I had made that this way, with two actors. But I am asking how to do this only with one actor... ;)

Thx for helping me :D

Re: My boring questions :-D

PostPosted: Sun Jul 12, 2009 5:39 pm
by DST
use a variable.

Button>mousebuttondown>
Code: Select all
switch(variable){
case 0:
play beep;
variable=1;
break;
case 1:
play boom;
variable=0;
break;
}

Re: My boring questions :-D

PostPosted: Sun Jul 12, 2009 6:08 pm
by Camper1995
Here is download link for my new developening game: http://rapidshare.com/files/255025275/T ... 2.rar.html

;)

Re: My boring questions :-D

PostPosted: Sun Jul 12, 2009 6:13 pm
by Camper1995
Heeey man :) This is awesome. It was not hard to make this.

Thank you man. 1+ for you :) :) :)

Re: My boring questions :-D

PostPosted: Sun Jul 12, 2009 6:38 pm
by Camper1995
Just one question. This is when I have 2 sound. But how to write when I have 3 or more sounds.

I just dont understand that variables. Why is in case 0 var=1 and in case 1 var=0

How to write when I have 3 cases or more?

Thank you,

CampeR

Re: My boring questions :-D

PostPosted: Sun Jul 12, 2009 10:37 pm
by skydereign
Those would be the two stages of the button. If you want more, than make more cases. The var changing is changing the state of the button.
Code: Select all
switch(variable){
case 0:
 play beep;
 variable=1;
 break;
case 1:
 play boom;
 variable=2;
 break;
case 2:
 play blip;
 var=0;
 break;
}

Re: My boring questions :-D

PostPosted: Sun Jul 12, 2009 11:48 pm
by jimmynewguy
a few notes
1) neverhood was controlled by the mouse
2) moonwalking happens if you move when while pushing light switch
3) in the room i moved all the way to the left hit the wall and was out of the view, but couldn't get back in :?:

Re: My boring questions :-D

PostPosted: Mon Jul 13, 2009 10:17 am
by Camper1995
Thank you Sky, and Jimmy, I know that oreginal Neverhood was controlled by the mouse, I am making The Neverhood 2, and it will be controlled by the keys ;)

that problem in room is finished, also ligting is good and I put some logical problems that you must beat in the game. :) You will see when I finish the game. It will be good game.

CAmPeR... :)

Re: The Neverhod 2 - moonwalking :(

PostPosted: Thu Jul 16, 2009 12:42 pm
by Camper1995
Help me please... :(

Re: The Neverhod 2 - moonwalking :(

PostPosted: Thu Jul 16, 2009 1:26 pm
by skydereign
I can probably help if you can tell me more about your problem. As it stands, it looks like normal moonwalking to me. What were you talking about when you said three animations? Also, I just took a look, is there any reason you have so many key down events. They are all script, so why not make them all in the same script? What antimoonwalk code are you using as of now, it looks like there is little moonwalk code, or that the code helps little? I will look further into it, but your reply would help greatly. I would probably set up a state system as there seem to be many different animations.

Here is some info on moonwalking, if you care to read. I would probably use a combination of states and using busy, animation finish.
http://game-editor.com/wiki/index.php?title=Moonwalking

Re: The Neverhod 2 - moonwalking :(

PostPosted: Thu Jul 16, 2009 5:50 pm
by Camper1995
Thank you for helping me Skydereign. The problem is: when you are holding key right for example, so the player is start to go right, and when is animation
how hes walking right, when, when you press key LEFT, nothing happened. And same on reverse side. OR, when is he walking and when you press key LEFT, stop the
player and play animation how hes stopping... Do you understand me better now? Thanks :)

CAmPeR...

Re: The Neverhod 2 - moonwalking :(

PostPosted: Thu Jul 16, 2009 10:18 pm
by skydereign
Well the Klayman is very lethargic in moving... Do you want the animations to finish before changing states, from walking to stopping to stop? One problem is that since the animations are so long, you would need to implement other events so they won't act. This shouldn't be hard, but I need to know if that is what you want. Also, how does the STEP animation play into this?

Re: The Neverhod 2 - moonwalking :(

PostPosted: Thu Jul 16, 2009 10:30 pm
by Camper1995
Well, I cant speak so good english so I dont understand you completly. I am using dictionary on internet to translate some words.

So yes, i wanna change animation from walking to stoping and then stop. If you know how to do this and to be "antimoonwalking" in the game,
I will be grateful to you man. :)