μ°Έκ³ ν•œκ²ƒλ“€

https://hsh12345.tistory.com/235

Unity) [μœ λ‹ˆν‹° 2D] ν”Œλ ˆμ΄μ–΄ λŒ€μ‹œ, μž”μƒ κ΅¬ν˜„https://www.youtube.com/watch?v=y982Gb00dho&ab_channel=MisterTaftCreates ν•΄λ‹Ή μ˜μƒ μ°Έκ³ ν•˜μ˜€μŠ΅λ‹ˆλ‹€. public void PlayerDash() { this.ghost.makeGhost = true; this.dashTime += Time.deltaTime; this.isDash = true; if (this.tmpDir == Vector2.zero) this.tmpDir = Vector2.right; this.rBody2d.velocity = this.tmpDir.normalized * (this.playerMoveSpeed * 5) * Time.deltaTime; if (this.dashTime >= this.maxaDashTime) { thi..hsh12345.tistory.com

https://www.youtube.com/watch?v=y982Gb00dho&ab_channel=MisterTaftCreates

Make a 2D Ghost Effect: How to with Unity and C#Pretty quick video today. I was going over how to make some neat 2d effects, and I made this one and thought I'd share. Feel free to ask any questions!Inca...www.youtube.com


7cef8374b48169f43df1c6bb11f11a39273b14b287707389d3

κ·Έλƒ₯ 보고 κ΅¬ν˜„ν•œκ±°λΌ κ°„λ‹¨ν•˜κΈ΄ ν•œλ° μž”μƒ κ΅¬ν˜„ν•˜λŠ” 방법이

νŒŒν‹°ν΄ μ“°λŠ” λ°©λ²•μ΄λž‘Β Chost Trail Effect, Trail Renderer λΌλŠ” κ·Έλƒ₯ λΉˆμ˜€λΈŒμ νŠΈμ— μƒμ„±ν•΄μ„œ

보이게 ν–ˆλ‹€ λ‚˜μ€‘μ— μ§€μš°λŠ” 방식이 μžˆλ”λΌκ³ μš”

μ €λŠ” ν›„μžλ‘œ ν–ˆμŠ΅λ‹ˆλ‹€.




κ·Έλž˜μ„œ μ € 빈였브젝트λ₯Ό λ§Œλ“€κ³  μ•„λ¬΄κ±°λ‚˜ μŠ€ν”„λΌμ΄νŠΈ ν•œκ°œ λ„£κ³  μ• λ‹ˆλ©”μ΄μ…˜μ—μ„œ colorλž‘ 투λͺ…도λ₯Ό μ†λŒ€λŠ”κ±΄λ°

μ €λŠ” μ•½κ°„ λΆ‰μ€μƒ‰μ—μ„œ 투λͺ…도 120정도가 60ν”„λ ˆμž„μ—μ„œ 15ν”„λ ˆμž„κΉŒμ§€ μœ μ§€λλ‹€κ°€ 40ν”„λ ˆμž„μΌλ•ŒΒ 

투λͺ…도 0 되게 ν•˜λŠ” μ• λ‹ˆλ©”μ΄μ…˜μœΌλ‘œ λ§Œλ“€μ—ˆμŠ΅λ‹ˆλ‹€. 그리고 λ‚˜μ„œ ν”„λ¦¬νŒΉμœΌλ‘œ λ§Œλ“€κ³ Β 



μ½”λ“œλ‘œΒ ν”Œλ ˆμ΄μ–΄ μ˜€λΈŒμ νŠΈμ—μ„œ κ·Έ Ghostλ₯Ό μ§€κΈˆ ν”Œλ ˆμ΄μ–΄μ˜ ν˜„μž¬ μ• λ‹ˆλ©”μ΄μ…˜μ— 맞게 μƒμ„±ν–ˆλ‹€ μ‚­μ œ ν•˜λŠ” μ‹μœΌλ‘œ λ§Œλ“€μ—ˆμŠ΅λ‹ˆλ‹€.

μ œκ°€ μ„€λͺ…을 λͺ»ν•΄μ„œ κ·Έλ ‡μ§€ λ“€κ°€μ„œ λ΄λ³΄μ‹œλ©΄ μ‰¬μ›λ‹ˆλ‹€. λ‹€λ“€ ν™”μ΄νŒ…

3132