Sign in to follow this  
Followers 0
Sampi

Movimiento en 8 direcciones

8 posts in this topic

en game_player busca esto
CODE
def update


Por la linea 204 mas o menos

veras esto
CODE
case Input.dir4
     when 2
       move_down
     when 4
       move_left
     when 6
       move_right
     when 8
       move_up
   end


cambialo por esto
CODE
case Input.dir8
     when 2
       move_down
     when 4
       move_left
     when 6
       move_right
     when 8
       move_up
     when 7
       move_upper_left
     when 9
       move_upper_right
     when 3
       move_lower_right
     when 1
       move_lower_left
     end


Y ya terminaste
0

Share this post


Link to post
Share on other sites
Otro script que se puede hacer por eventos. Pero bueno. Buen aporte.
0

Share this post


Link to post
Share on other sites
Sí... pero el efecto no queda bien del todo... loa hay mejorados para que edites el chara y hagas las diagonales, pero esto es más sencillo.
0

Share this post


Link to post
Share on other sites
si pero.. quien va a editar asi un chara xD.png buen script pero se ve un poco estupido el psj llendo en diagonal
0

Share this post


Link to post
Share on other sites
Hay varios scripts que incorporan el cambio de chara diagonal, que tienes que crear, así que no es tan extraño.
0

Share this post


Link to post
Share on other sites
con extraño se refiiere a q se ve mal el efecto x>DD
0

Share this post


Link to post
Share on other sites
Pues para eso hay otros que editan algo mejor... pero si buscas algo simple y funcional está bien.
0

Share this post


Link to post
Share on other sites
hay unos mas simples q lo ahcen sin modificar xD.png pero se ven muy estupidos
0

Share this post


Link to post
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
Sign in to follow this  
Followers 0