Page 1 of 1

a Too Simple question

PostPosted: Thu Mar 04, 2004 7:42 pm
by ingsan
i have a very simple question :

I have on Actor1 :

1- An animation on Left and Right keybuttons.
2- an animation "Stand" for Actor1's initial position.
3- on KEYUP Left or Right :arrow: Change animation
to "Stand"animation.

My problem is that in my game, when u are for example on Right Button (go Right) and that u immediately want to go Left (so shift Right button to Left button), u are logically doing successively:

Code: Select all
KeyDown
KeyUP
KeyDown


So when u shift from Right to Left, ur character Has first "Stand" animation and THEN Left animation.

So i always end up with my character walking left or right with "Stand" animation.
Is there any way to have a Perfect animation Change ie from Left to Right/Right to Left without the "Stand" animation between them?

PostPosted: Fri Mar 05, 2004 1:24 am
by makslane
Look the demo shoot'em up/island

This thing is solved by using a aux var keypressed

OnKeyDown(left or right):

keypressed = keypressed + 1;


OnKeyDown(left or right):

keypressed = keypressed - 1;
if(keypressed == 0) ChangeAnimation("Event Actor", "Stand", FORWARD);

PostPosted: Mon Mar 08, 2004 11:50 am
by ingsan
WEll i rebuilt tha plane of shoot'em all/island with the code that u gave me and it works perfectly.

:? hmmm...however i have different animations
3 in total :
    1-Stand
    2-Walking Right-way, and
    3-Walking Left-way


on KEYDOWN[LEFT or RIGHT] :arrow: my actor has to "walk" continuously ie Left-Right animation has to loop on itself.

To use "keypressed" and "animpos", i actually combined my three animations in ONE like u did in the demo, just to try(but i don't think that this is useful for what i actually want :? ) so that i can use

Code: Select all
on ANIMATION FINISH > ANIMTAION Forward, Backward or Stopped


But because of that, my actor Goes CrAzy! :( he goes left and then goes right and then Stands, and then goes Left again..... :cry:

PostPosted: Sat Mar 13, 2004 11:41 am
by ingsan
any idea ?

Maxslane, may i send u a project where i encouter this problem and i'm not able to correct it ? :(

PostPosted: Sat Mar 13, 2004 5:24 pm
by makslane
Ok :)

PostPosted: Tue Mar 16, 2004 2:18 am
by ingsan
i have to report a bug in GE Pro version to u maxslane :

In Game Mode, any game works prefectly.

I then tested Export (For Windows and PPC) on, as u know, two games and it happens that on Both compiled games, u have exactly the Same bug :
    Creation of Double Actors on CreateActor after a DestroyActor Event
    View that stops following the actor after a specific action or after
    the Event described previously


It's a fact that the problem comes from the compilation.
Do u get the same problem on ur GE or is it only with my version?
Can u help?
:?

PostPosted: Tue Mar 16, 2004 1:39 pm
by makslane
This bugs will be solved in the next version