Enomis Posted June 9, 2008 Share Posted June 9, 2008 Vorrei modificare alcuni parametri del Bs Standard, tra cui quello della posizione e dell'opacità del Battler. Quale classe devo modificare?? Link to comment Share on other sites More sharing options...
0 Enomis Posted June 19, 2008 Author Share Posted June 19, 2008 Ma non c'è proprio nessuno che possa aiutarmi??? Link to comment Share on other sites More sharing options...
0 amivaleo Posted August 1, 2008 Share Posted August 1, 2008 va in Game_Actor, alla fine dello script dovresti trovare le funzioni "def screen_x", "def screen_y", "def screen_z":def screen_x if self.index != nil return self.index * 120 else return 0 end endfa attenzione alla riga "return self.index*120". questa significa che i battler verranno posizionati a 0, 120, 240, 360 pixel da sinistra. modificando questa riga, cambia la posizione dei battler lungo l'asse x. se scrivi ad esempio "return 240", i battler verranno tutti visualizzati al centro dello schermo, come tante immagini sovrapposte.in "def screen_y" c'è una riga con un return simile (trascura il "return 0"). questa permette di modificare la posizione dei battler lungo l'asse y. questi valori vengono ripresi in Sprite_Battler. proprio nelle ultime righe puoi leggere:self.x = @battler.screen_x self.y = @battler.screen_y self.z = @battler.screen_zse aggiungi o sottrai valori a queste variabili (cioè se scrivi ad esempio "self.x = @battler.screen_x+100") modificherai le coordinate utilizzate per le animazioni di battaglia (quando usi un'abilità, un oggetto, etc)... o almeno così credo! per l'opacità non so come aiutarti... forse non è quello che intendi fare, ma ricorda che per l'opacità è sufficiente modificare le immagini con photoshop o similia. Link to comment Share on other sites More sharing options...
Question
Enomis
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now