tierra de las luces y las sombras (parte III)

1
  • 0 favourites

Index

Tagged

Attached Files

The following files have been attached to this tutorial:

.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

Stats

5,382 visits, 6,627 views

Tools

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.

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

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