Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poder acceder a los comportamientos mediante actor.comportamiento.propiedad #194

Open
quiqueporta opened this issue Oct 29, 2013 · 2 comments

Comments

@quiqueporta
Copy link
Collaborator

Irvin comentaba lo suguiente en el ticket #193 :

En el comportamiento Orbitar todos toman cómo punto en 0,0. Allí no se nota la asignación de comportamientos a todo el grupo aun a pesar de que está sucediendo.

Trate de acceder a monos[0].punto_de_orbita_x Pero no es posible.

@ghost ghost assigned quiqueporta Oct 29, 2013
@irvingprog
Copy link
Contributor

@quiqueporta

Así se puede hacer sin problema(Es un ejemplo con el comportamiento Saltar):

monos = pilas.actores.Mono() * 3
monos.hacer_luego(pilas.comportamientos.Saltar,True)
monos[0].comportamientos[0].velocidad_inicial=15

Aunque también quedaría muy bien así:

monos.comportamientos[0].velocidad_inicial=15

@quiqueporta
Copy link
Collaborator Author

Tengo algo implementado, pero la idea es hacerlo como las habilidades.

mono.hacer_luego(pilas.comportamientos.Saltar,True)
mono.comportamientos.Saltar.velocidad_inicial = 15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants