Ghosting Question

So I wanted to have a sprite have a ghosting ability so when it collides with certain blocks or sprites (proximity preferred) and it will become non-solid and pass through that object with ease, but when its far enough from that object then it will go back to solid so it can’t go outside of the border. Any ideas?

Try using raycasts and the enabled behavior.

1 Like

As @AbstractGallery said, use the raycast and enabled behaviors(with materials)

1 Like

Well, when I use the enabled behavior it just prevents the sprite from moving. I was wondering if there was another way instead of using the enables behavior.

You could always go with the alternative and use the enabled on the object the ghost will go through.

1 Like

You could make the ghost object not solid but enable collisions, then if you want it to move back and forth you can make invisible barriers only the ghost can collide with.

1 Like

Oh, that way it might work. I’ll try that.

1 Like

Well, I tried many times using that idea and other objects kept going through the blocks as well, so I might need an example, or just a an entirely new idea.

1 Like

Is it a Platformer or Top-down?

1 Like

Is it the facility? if yes, top down

1 Like

I’ll just private message you since its a gamejam game and i don’t want the others to see it.

i saw it XD is it the bouncing ball thing?

1 Like

Yeah, its the transparent ball named Ghost Ball.