Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Pifpif |
stupid question probably, but I’m new to godot and coding in general so I haven’t managed to get anything but the raycast to sort of work.
For context I’m making a farming sim. Planting has been difficult to implement though. I’ve been trying to fix a bug where you can plant multiple seeds in the same plot. The seed/plant is an animated sprite, and I couldn’t find another way to check if there is a sprite already at a location so I used a raycast to send signals if it collided with the sprite.
However, when your inside the area of the other seed you can’t plant in the next plot because the other half of the raycast is still colliding. Is there anyway to deactivate collisions to part of the raycast so that your only checking if the arrowhead collides? or if not, anyway to detect if there is a sprite at a specific location before planting?
I’m also open to other suggestions.