tierra de las luces y las sombras (parte III)

1

Index

Fichiers attachés

Les fichiers suivants ont été attachés à ce tutoriel:

.capx

part-3-simple-with-layers.capx

Télécharger maintenant 192.27 KB
.capx
.capx

part-3-very-simple.capx

Télécharger maintenant 179.75 KB
.capx

line-of-site-full-grid.capx

Télécharger maintenant 310.91 KB
.capx
.capx
.capx

cast-light-arc-reducing-length.capx

Télécharger maintenant 248.68 KB
.capx
.capx

cut-up-light-length.capx

Télécharger maintenant 318.01 KB

Statistiques

5,694 visites, 7,148 vues

Outils

Partager

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 28 Mar, 2014. Last updated 25 Feb, 2019

Método 3 - luz en arco

Echa un vistazo a "Cast light arc 01" - Muestra el último método que he estado utilizando para emitir luz / sombras. Ejecuta el programa y mueve el ratón / sprites sobre el arco de la "luz " roja .

Esto lo que hace es crear un largo y delgado sprite "my light beam" y moviendolo un numero de grados ya escrito. Cuando este haz de luz toca un obstaculo el rayo en concreto se destruye.

El problema más obvio en este momento es que ahora tenemos una sombra triangular que viene desde el obstáculo a la fuente de luz.

Una solución sencilla es reducir el largo del rayo de luz al chocar con un objeto.

(ver "cast arc light reducing length.capx")

Date cuenta que he hecho que cada rayo de luz se apague - hay otras maneras de hacerlo, pero así es sencillo y funciona.

To incorporate this method into a game then the light you would need to move these beams onto another layer and set the blend as previously discussed. The arc start point would need to be placed where the player is and the arc angle would need to take the players angle into account.

(Cast forwards 3.capx)

Well I guess that will do. Please leave a message with any question, comments or suggestions.

Have fun.

RPW

.CAPX

part-3-simple-with-layers.capx

Download now 192.27 KB
.CAPX

part-3-simple.capx

Download now 179.41 KB
.CAPX

part-3-very-simple.capx

Download now 179.75 KB
.CAPX

ball-shadow.capx

Download now 428.71 KB
.CAPX

line-of-site-full-grid.capx

Download now 310.91 KB
.CAPX

line-of-site-cone.capx

Download now 243.97 KB
.CAPX

cast-light-arc-01.capx

Download now 248.66 KB
.CAPX

cast-light-arc-reducing-length.capx

Download now 248.68 KB
.CAPX

cast-forwards-3.capx

Download now 318 KB
.CAPX

fog-test-01.capx

Download now 532.27 KB
.CAPX

cut-up-light-length.capx

Download now 318.01 KB
  • 0 Comments

Want to leave a comment? Login or Register an account!