Jump to content
Rpg²S Forum
  • 0

IMPOSTAZIONE TASTI


Argald
 Share

Question

allora ragazzi, ho un problemino con i tasti:

vojo far si che quando tengo premuto un tasto si verifichi una determinata azione(il PG rallenti la corsa) , mentre quando il tasto viene rilasciato tutto ritorna come prima....come faccio??

a da un pò che ci provo ma senza risultati....aiutatemiiiiiii

http://rpg2s.net/gif/SCContest2Oct.gif http://rpg2s.net/gif/SCContest2Oct.gif

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Se ricordo bene dovrebbe essere qualcosa tipo:

 

-Controllo tasti [Variabile: Rallenta] (spunta solo un tasto, per esempio shift, e togli la spunta da "aspetta un tasto")

-Se Var[Rallenta] - Maggiore di 0

--Se Switch Rallenta ON

---niente

--Altrimenti

---Muovi Evento: Eroe -Max Velocità

---Cambia Switch [Rallenta] ON

--Fine

 

-Altrimenti

--Se Switch [Rallenta] ON

---Muovi Evento: Eroe, +Max Velocità

---Cambia Switch [Rallenta] OFF

--Altrimenti

---niente

--Fine

-Fine

 

Il problema sta nel fatto che è difficile gestire la velocità, dal momento che (se non sbaglio) la quantità con cui +Max Velocità aumenta la velocità non è pari alla quantità con cui _Max Velocità la diminuisce

http://rpg2s.net/gif/SCContest3Oct.gifhttp://i53.tinypic.com/14lrbci.png
Membro #9 della:
http://img3.imageshack.us/img3/9636/bannergm.png

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...