W
woyosensei
Guest
Hi all!
I'm looking for a solution for a while now, but TBH I have no idea how to "bite it". I am working on top-down game and here and there have some trees spawned randomly around the map/room. What I want to achieve is when the player character is "under" the tree sprite (or any other sprite, like enemies) it will still be visible with some kind of partially drawn effect. I don't know how to call it properly in English (not my native language) but you can see it in almost every sprite-based game (but not limited to). Sometimes is just outline effect, sometimes is kind of transparent method. I was thinking about the method I can use and the couple ideas I have is shaders or surfaces. Also draw_sprite_part can be a way to achieve that, but I have no idea how to do it (yet). I just need to add that trees and player character are on different layers (trees are "higher")
What is the best method to achieve that kind of effect? Do you have any YT tutorials with some examples? Or maybe there is a script somewhere?
I will be very grateful for any help I can get.
Thank you in advance.
Best regards
I'm looking for a solution for a while now, but TBH I have no idea how to "bite it". I am working on top-down game and here and there have some trees spawned randomly around the map/room. What I want to achieve is when the player character is "under" the tree sprite (or any other sprite, like enemies) it will still be visible with some kind of partially drawn effect. I don't know how to call it properly in English (not my native language) but you can see it in almost every sprite-based game (but not limited to). Sometimes is just outline effect, sometimes is kind of transparent method. I was thinking about the method I can use and the couple ideas I have is shaders or surfaces. Also draw_sprite_part can be a way to achieve that, but I have no idea how to do it (yet). I just need to add that trees and player character are on different layers (trees are "higher")
What is the best method to achieve that kind of effect? Do you have any YT tutorials with some examples? Or maybe there is a script somewhere?
I will be very grateful for any help I can get.
Thank you in advance.
Best regards