• Benvenuto in Making Videogames!
  • Dai sfogo alla tua fantasia!
  • Crea il tuo Videogioco!
Benvenuto ospite! Login Registrati




Valutazione discussione:
  • 1 voto(i) - 5 media
  • 1
  • 2
  • 3
  • 4
  • 5
Tempo preciso per animazione
#1
Information 
Formula x il calcolo preciso di una animazione
----------------------------------------------

[(0,4 x F/s):10] x 1000 = -------> ridotta -----> 40 x F/s

Il risultato apparirà già in millisecondi, per poterlo usare negli script di FPSC


F/s = frame/secondo (come trovare il valore giusto?)

1) Aprire il file .fpe dell'entità
2) Rintracciare l'animazione che ci interessa riprodurre con precisione

es.: anim2 = 32,44

3) Sottrarre dal numero più grande il numero più piccolo

44-32= 12F/s per eseguire l'animazione 2


Esempio di script per animazioni in sequenza: (script per animazione Dog)
Citazione:;Artificial Intelligence Script

;Header By Tax

desc = Animate dog

;Triggers

Confusedtate=0:timerstart,state=1

;fermo
Confusedtate=1,timergreater=1320:animate=1,state=2,timerstart

;Si siede
Confusedtate=2,timergreater=4000:animate=25,state=3,timerstart

;Seduto
Confusedtate=3,timergreater=2320:animate=26,state=4,timerstart

;Si alza da seduto
Confusedtate=4,timergreater=4760:animate=27,state=5,timerstart

;Cammina
Confusedtate=5,timergreater=2400:animate=2,state=6,timerstart

;Corre
Confusedtate=6,timergreater=4000:animate=5,state=7,timerstart

;Impiedi su due zampe
Confusedtate=7,timergreater=4000:animate=28,state=8,timerstart

;Dorme
Confusedtate=8,timergreater=4000:animate=29,state=9,timerstart

;Salto
Confusedtate=9,timergreater=4000:animate=50,state=10,timerstart

;Morte da dx
Confusedtate=10,timergreater=1320:animate=20,state=11,timerstart

;Morte da sx
Confusedtate=11,timergreater=720:animate=17,state=12,timerstart

;Morte da dietro
Confusedtate=12,timergreater=720:animate=14,state=13,timerstart

;Morte dal davanti
Confusedtate=13,timergreater=1040:animate=11,state=1,timerstart

;End of script
Il tempo espresso nel "timergreater=XXXX" è il tempo dell'animazione precedente a quella che si trova
nella sua stessa riga.

Es.: Viene eseguita l'animazione 1 (state=1), in automatico si passa allo state=2, ma solo dopo 4 secondi
si passa all'animaziona 25..... e cosi via per le altre

I tempi con 4000 sono impostati a caso, non ha importanza per quel tipo di animazione, perchè ciclica.

By Tax
 
Rispondi
  


Messaggi in questa discussione
Tempo preciso per animazione - da Tax78 - 29-01-2011, 12:13 PM
RE: Tempo preciso per animazione - da x4ndr3a - 29-01-2011, 05:57 PM
RE: Tempo preciso per animazione - da David - 30-01-2011, 12:10 PM
RE: Tempo preciso per animazione - da Tax78 - 30-01-2011, 12:57 PM
RE: Tempo preciso per animazione - da David - 30-01-2011, 01:42 PM
RE: Tempo preciso per animazione - da Tax78 - 30-01-2011, 07:36 PM
RE: Tempo preciso per animazione - da David - 31-01-2011, 12:28 AM
RE: Tempo preciso per animazione - da Alche - 31-01-2011, 01:01 AM

Discussioni simili
Discussione Autore Risposte Letto Ultimo messaggio
Information Porta a tempo Tax78 5 1,377 05-08-2013, 01:15 AM
Ultimo messaggio: Tax78
  [RISOLTO]Far scomparire un entità/oggetto dopo un tot di tempo Klascov 10 1,337 17-06-2013, 03:30 AM
Ultimo messaggio: Klascov
  suond zone a tempo lordx 4 670 01-10-2012, 12:04 PM
Ultimo messaggio: lordx
  [CERCO]Script hud x un certo tempo francy11 18 2,069 20-07-2011, 11:25 AM
Ultimo messaggio: xlsheriklx

Vai al forum:


Browsing: 1 Ospite(i)