Animation

Non-platform specific questions.

Animation

Postby Romol » Tue Feb 17, 2009 2:05 pm

when striking the button not releasing her(its) picture cost(stand)s on place . what do so that- at deduction of the button анимация returned itself , in the first initial condition?
--------------------------Other version translate ---------------------------------------------------------------

At button keeping, animation is at a stop. How to make so that at keeping of the button animation has shown one picture and has returned to an initial condition
User avatar
Romol
 
Posts: 35
Joined: Mon Feb 09, 2009 11:41 am
Location: Russia
Score: 3 Give a positive score

Re: Animation

Postby skydereign » Tue Feb 17, 2009 7:53 pm

I'm not I understand, but...
Do you mean, upon an event, trigger an animation change? So when you press a key, it changes the animation to the initial frame and stops it?
If so, then use a ChangeAnimation frame. Set the direction to stopped. Or in Script Editor,
Code: Select all
ChangeAnimation("Event Actor", "Animation", STOPPED);


Or you could mean upon the animation finish of an animation triggered by a keydown. In that case you would add an AnimationFinish event, and set a change animation and the direction to stopped.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Animation

Postby Grahor » Wed Feb 18, 2009 10:02 am

I don't really understand the question either, but if you need to return animation in the previous state some time after pressing a key, without any other event happening, you can always create a timer, which will start on pressing a key and return the animation to previous state some seconds later.

Alternatively, you can send a message to me on the forum in Russian, and I will help you to translate your question more correctly (I hope) - I know Russian.
Grahor
 
Posts: 4
Joined: Sun Feb 15, 2009 11:53 am
Score: 0 Give a positive score

Re: Animation

Postby DST » Wed Feb 18, 2009 12:52 pm

It' s хороший которому вы пробуете помочь ему, только вы должны попробовать переводчика
(или использовать русского если вы знаете его). Это что ваши ответы вероятно смотрят как к Romol.

What this means in english:

It's good that you are trying to help him, but you should try a translator
(or use russian if you know it). This is what your answers probably look like to Romol.

If he can't type english, he probably can't read much of it either.

Переключите к следующей рамке на ключе вниз, и назад обрамить нул на ключе вверх. Упование оно помогает.

Actor>CreateActor>
Code: Select all
ChangeAnimationDirection("Event Actor", STOPPED);


Actor>Keydown>
Code: Select all
animpos=1;


Actor>Keyup>
Code: Select all
animpos=0;


Для полной одушевленност, используйте
Code: Select all
ChangeAnimationDirection();

вместо
Code: Select all
animpos=



Если стоп на неправильной рамке, выбирает
anup1.jpg

Положенный номер рамки, котор нужно остановить дальше.
anup2.jpg
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: Animation

Postby Romol » Thu Feb 19, 2009 1:01 pm

---------------------------1------------------------------------------- :roll:
yes , I need the timer for determined animation in actor!
when she is actuated (animation) comes into play timer creat other animation!
(example of my play : holding button downwards he sits , press else X he beats , but picture cost(stand)s on place under keep . but me it is necessary that he back returned in animation under keep buttons downwards
------------------------------2------------------------------------------------------------ :roll:
yes, I need a timer for certain animation in an actor !
when it is activated (animation) the timer of deluyuschiy starts acting other animation !
(example of my game : retaining button he sits downward, press yet X he beats, but animation stands in place at retaining . and I am necessary what he back came in animation at retaining of the button downward
-----------------------------------3--------------------------------------------------------------------------------- :roll:
Yes, I need a timer for a particular actor in the animation! when it is activated (animation) starts a timer deluyuschy another animation! (example of my game: hold the button down he sits, press X, it still beats, but the animation is on the ground when holding. but I need that he would have returned back to the animation when holding the button down
---------------------------------------------


=>


if you can .... Make me a demo game with this technique :) :) :)
Please..... :cry:
User avatar
Romol
 
Posts: 35
Joined: Mon Feb 09, 2009 11:41 am
Location: Russia
Score: 3 Give a positive score

Re: Animation

Postby DST » Fri Feb 20, 2009 7:13 am

Вы можете запрограммировать простой способ или трудный путь. Легко в старте, крепко под конец. Крепко на старте, легком в конце.

Простой способ всегда терпит неудачу под конец. Который путь вы хотите выучить?

Для хорошего, никогда не используйте отметчик времени для задержек по времени. Используйте перемеююый вместо отметчика времени.

Используйте перемеююый как срок для одушевленност.

Сделайте перемеююый, интежер, перемеююый актера, названное " limit".

Actor>Draw Actor>Script Editor>
Code: Select all
if(limit>0){
limit-=1;
}
if(limit==0){
ChangeAnimation("Event Actor", "имя", STOPPED);
}
If limit==10)
{
ChangeAnimation("Event Actor", "имя" , NO_CHANGE);
}
if(limit==20){
ChangeAnimation("Event Actor", "имя ", NO_CHANGE);
}


На случае, просто предел комплекта.
Actor>Collision>Any Side>имя>
Code: Select all
limit=20;

или

Actor>KeyDown>space>
Code: Select all
limit=10;

Как временная последовательность по кино, вы имеете полный контроль над одушевленност этот путь. Более крепко выучить. Делает более лучшие игры.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: Animation

Postby Leif » Wed Apr 21, 2010 7:04 am

:lol:

Охрененный диалог))

DST- respect ))
Repulsor beam + heavy cannons
User avatar
Leif
 
Posts: 147
Joined: Mon Dec 15, 2008 12:42 pm
Location: Moscow, Russia
Score: 10 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest