Make a 2D Ghost Effect: How to with Unity and C#

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2024

ความคิดเห็น • 44

  • @blobsterhop1470
    @blobsterhop1470 4 ปีที่แล้ว +5

    Thank you so much, The pace of the video was perfect, not too slow and not too fast. You definitly deserve more subscribers!

  • @TexasBakedBlackBeans
    @TexasBakedBlackBeans 7 หลายเดือนก่อน

    Such a GOATED tutorial

  • @ProkerKusaka
    @ProkerKusaka 4 ปีที่แล้ว +6

    Use this with pooling objects for a resource management

  • @mintydog06
    @mintydog06 3 ปีที่แล้ว

    Brilliant tutorial, thanks very much.

  • @zeratul301
    @zeratul301 3 ปีที่แล้ว

    Really useful video :) Great job! Thank you.

  • @meliodasx6035
    @meliodasx6035 5 ปีที่แล้ว

    Thanks buddy. This has been an informative and useful video.

  • @vietanhnguyen1415
    @vietanhnguyen1415 3 ปีที่แล้ว +3

    Amazing video , your instruction help me improve my project greatly, thanks men!
    By the way, can you help me with this question? I do not use sprite sheets for animation of "Adventure" Object like yours, instead , my "Player Object" have many child objects represent parts of the body and use Rotation, Scale to do the animation. How can i generate an duplicate of images like yours? Thanks in advance

  • @nukem_
    @nukem_ 5 หลายเดือนก่อน

    Sorry for necroing here but any idea what's wrong if the Animation window controls are greyed out? I read somewhere that the ghost needs to be a prefab but from what I can tell it's not in this clip. I made it into a prefab anyway but still can't do anything in Animation.

  • @hoangminhnguyen2191
    @hoangminhnguyen2191 4 ปีที่แล้ว +2

    I love this

  • @niyazimustafa
    @niyazimustafa 3 ปีที่แล้ว +1

    hello I have a question. When the platform jumps from the effector, ground control is grounded and double-jumping is enabled. How do I solve this problem?

  • @binarystateofmind2971
    @binarystateofmind2971 3 ปีที่แล้ว +1

    This works great. Thx :)

  • @novagaming6444
    @novagaming6444 2 ปีที่แล้ว

    You're doing great bro 😇😇

  • @jpierre
    @jpierre 4 ปีที่แล้ว +2

    Que grandioso video, sin tanto código creas un gran arte muchas gracias por compartir me ha servido a la primera muchas gracias amigo.

  • @SoyelAlejandro33
    @SoyelAlejandro33 3 ปีที่แล้ว

    Thank you sir!

  • @ilyaskorkmaz4909
    @ilyaskorkmaz4909 5 ปีที่แล้ว +2

    Thanks, it was be usefull for me

  • @claireglory
    @claireglory 2 หลายเดือนก่อน

    using Unity while in a MAC. when graphics card is so important. that's crazy.

  • @richdev4077
    @richdev4077 4 ปีที่แล้ว

    Hey, I don't know if you still respond but I am having a problem which is the effect is different speed for different resolutions. For example, when I am in a larger screen, more ghost trails will appear(7 sprites). When I am in a smaller screen, only a few ghost trail appears(3 sprites). Do you know how to fix this problem?

  • @chillerdude1
    @chillerdude1 4 ปีที่แล้ว

    Thank you so much!

  • @nagybalint1474
    @nagybalint1474 3 ปีที่แล้ว

    thanks so much :D

  • @leonedandrewTumbaga
    @leonedandrewTumbaga ปีที่แล้ว

    ghost effect works but it's not moving along with my player the ghost stock on the one location

  • @jessecn4764
    @jessecn4764 3 ปีที่แล้ว

    thanks bro

  • @ilangoossens2573
    @ilangoossens2573 2 ปีที่แล้ว

    thx a lot

  • @skanouri5742
    @skanouri5742 3 ปีที่แล้ว

    Thank you!!!!!

  • @respectg4573
    @respectg4573 2 ปีที่แล้ว

    This is Sandevistan.

  • @RafaelSilva-vo4ti
    @RafaelSilva-vo4ti 4 ปีที่แล้ว

    thanks a lot baby

  • @lanch7196
    @lanch7196 3 ปีที่แล้ว

    My sprite uses rigging, is it possible?

  • @ryanokerlund3572
    @ryanokerlund3572 5 ปีที่แล้ว

    I am trying to add this effect to a dashing character (almost like teleporting) where I set the character's velocity much higher. However, the effect does not play quickly enough. Any tips in making this dash play instantly upon "dashing" and stop after the dash ends? Great tutorial btw!

    • @MisterTaftCreates
      @MisterTaftCreates  5 ปีที่แล้ว +1

      Hey there. First, are you using the animator for your dash? If so, do you have a timed transition? This might cause a delay between states which could cause what you're experiencing.
      Second, you can set the delay to be significantly lower to cause the shadows to appear faster. Set the delay pretty low (about 0.05 seconds) and it should work better.

  • @abungga3485
    @abungga3485 2 ปีที่แล้ว

    hi, When ever I generate a ghost it dosent seem to use the sprite that is in my sprite renderer. rather using the sprite I put in the prefab. any ideas on why this is happening?

    • @abungga3485
      @abungga3485 2 ปีที่แล้ว

      I fount out it was due to the animation tba. but now that there is no animation. there will be no fade. any ideas on how to fix this?

  • @RichnouRichnou
    @RichnouRichnou 6 ปีที่แล้ว

    Nice :-)

  • @capitaoquasar
    @capitaoquasar 5 ปีที่แล้ว +1

    É similar a jogos 3d???

    • @MisterTaftCreates
      @MisterTaftCreates  5 ปีที่แล้ว +2

      That depends on the effect. If you want a 3d sprite (like in paper mario) then yes, but if you want it to be a shadow model behind the player, then you're using a mesh instead of an image.

  • @imhoteptheunsullied3000
    @imhoteptheunsullied3000 4 ปีที่แล้ว

    😂 😂 😂!

  • @Roxioxx
    @Roxioxx 4 ปีที่แล้ว

    I tried this video effect out and in the end, I was able to be successful, but I had to change some things. I kept getting a NullReferenceExeption in my controller file when I tried to reference this new ghost class. I then merged the two scripts together, which still did not solve the problem. Then, I just looked up a quick video to get around the nullReferenceError here: th-cam.com/video/UYziBhvVIcs/w-d-xo.html and it worked. No more errors.
    The second issue I ran into was incorporating this into my dash button instead of every movement. I used Code Monkey's top down movement and dash controller: th-cam.com/video/Bf_5qIt9Gr8/w-d-xo.html and so on space, I would dash and I put the makeGhost variable to "true" on GetKeyDown. That got my dash to work, but only create one ghost. So, after some brute force (because I'm very terrible at coding) I found a solution. I had put makeGhost = false at the end of my dash function so of course, the program would run once and then be set to false. I put in a new input to be GetKeyUp on the space bar and then my trails would appear. I'm very happy with my results.
    This is just my experience with the code. Like I said, I've very happy with the end result. Thank you for such a lovely video.

  • @lordmaxwell00
    @lordmaxwell00 ปีที่แล้ว +1

    WOOOOW THANKSSSSS

    • @segooi6412
      @segooi6412 ปีที่แล้ว +1

      thx you fixed my life 👊

  • @drumatic
    @drumatic 3 ปีที่แล้ว

    Thanks you so much!