a Too Simple question

Game Editor comments and discussion.

a Too Simple question

Postby ingsan » Thu Mar 04, 2004 7:42 pm

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?
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby makslane » Fri Mar 05, 2004 1:24 am

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);
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby ingsan » Mon Mar 08, 2004 11:50 am

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:
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby ingsan » Sat Mar 13, 2004 11:41 am

any idea ?

Maxslane, may i send u a project where i encouter this problem and i'm not able to correct it ? :(
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby makslane » Sat Mar 13, 2004 5:24 pm

Ok :)
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby ingsan » Tue Mar 16, 2004 2:18 am

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?
:?
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby makslane » Tue Mar 16, 2004 1:39 pm

This bugs will be solved in the next version
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron