Jump to content
Rpg²S Forum
  • 0

Problema corsa


Altair
 Share

Question

Sto da tempo utilizzando lo script per la corsa del PG,però devo fare in modo che

quando corre cambi il charset del PG in modo che si vede che corra,e poi quando finisco

la corsa,lasciando il tasto deve tornare il chara normale.

Sapete come si fa? Grazie in anticipo! :chirol_bak2:

Vuoi imparare una nuova sconvolgente lingua????


http://it.youtube.com/watch?v=eMbM09aLMq4


Progetti in corso:N-U-L-L-A! (nel senso che non ho niente da progettare,perchè non ho idee XDDD)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

A livello di script non te lo so dire (anche se non dovrebbe essere difficile).

Magari potresti farlo con un evento in parallelo in cui quando premi il pulsante

della corsa si cambia il chara. Non ho provato ma dovrebbe funzionare. ^^

 

A livello di script magari risulta più comodo. Cmq aspetta qualche altra risposta.

Progetto in corso:

"Hero Walking: Toward Another Life"

Video Old Intro su Youtube

Visite: 11.896!

http://img212.imageshack.us/img212/1060/logheryb0.jpg

 

 

*Posizioni raggiunte nei contest*

 

 

http://www.rpg2s.net/awards/bestuser1.jpghttp://www.rpg2s.net/awards/beststaff1.jpg

http://www.rpg2s.net/awards/bestmaker3.jpghttp://www.rpg2s.net/awards/bestcritical1.jpghttp://www.rpg2s.net/awards/mostcharismatic2.jpg

http://www.rpg2s.net/awards/mosthelpful1.jpghttp://www.rpg2s.net/awards/mostpolite1.jpghttp://www.rpg2s.net/awards/mostpresent1.jpg

 

http://img204.imageshack.us/img204/8039/sccontest3octpl3.gif http://img103.imageshack.us/img103/1496/sccontest2octou1.gif http://img118.imageshack.us/img118/181/sccontest1octdt9.gif http://img230.imageshack.us/img230/1273/sccontest1batio5.gif http://img103.imageshack.us/img103/1496/sccontest2octou1.gif http://img103.imageshack.us/img103/1496/sccontest2octou1.gif http://img103.imageshack.us/img103/1496/sccontest2octou1.gif http://img143.imageshack.us/img143/3755/destroyae4.png

http://img141.imageshack.us/img141/3081/comics3od3.gif http://img118.imageshack.us/img118/181/sccontest1octdt9.gif

 

 

SE VUOI AVERE RENS PER RISORSE, TUTORIAL, DEMO, ECC... LEGGI QUI

Link to comment
Share on other sites

  • 0

Allora.

Database-->eventi comuni-->crea evento corsa-->parallelo-->switch N(che vuoi che ne sappia?!)

Poi nelle istruzione metti:

Conditional Branch:Key X(faccio per dire)Pushed

Move Event Player: Change speed 5,Change grapich[Chara]

Else

Move Event Player: Change speed 4,Change grapich[Chara]

 

 

Nota1: ovviamente il pg non corre se lo switch designato non è attivo.

Nota2:se vuoi mettere differenti livelli di corsa devi arrangiarti :P

Note3:al posto del [Chara] devi metterci la grafica corrispondente,nel primo caso la grafica del chara che corre,nel secondo la grafica del chara che cammina.

Con la mia lama fenderò le tenebre e con il mio scudo proteggerò i deboli

2912.png

Link to comment
Share on other sites

  • 0

Io l'ho fatto tramite script,ho semplicemente inserito il seguente codice nella classe GAME_PLAYER, inserito precisamente sotto il metodo UPDATE

 

#FUNZIONE CORSA

if Input.press?(Input::SHIFT)

@move_speed = 5

@move_frequency = 10

else

@move_speed = 4

@move_frequency = 6

end

 

Tenendo premuto SHIFT si corre, rilasciando si cammina, ovviamente cambiando i valori di @move_speed cambia la velocità

 

Ehm scusate, ho sbagliato .. pensavo che il char dovesse solo correre e non cambiare grafica :chirol_gusun:

Edited by Sn@Ke
Link to comment
Share on other sites

  • 0
E' giusto così, basta aggiungere nello script dopo move frequency anche il cambio del charset, che non so come si dice negli script.....

http://img206.imageshack.us/img206/1528/tributeiu3.jpg

For The Brave Soldiers....

Thank you.

 

http://www.ff-fan.com/chartest/banners/laguna.jpg

Which Final Fantasy Character Are You?

Final Fantasy 7

http://www.naruto-kun.com/images/narutotest/itachi.jpg

Which character are you test by Naruto - Kun.com

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...