I am trying to create a boardgame that checks if a player already is on a circle to their right (using raycast). I have added in a scanline to try and mimic what the raycast is hitting.
I’ve added it to the subevent, however the raycast still isn’t triggering, any thoughts on why I’m not seeing any code which shows “raycast2” in the section?
As it stands, the “Circle is in collision with player1” filters the set of player1 objects that GDevelop uses in the subevents to that one player1 event. The raycast is only testing against that one player1 object, not all of them
To fix this, put a “Pick all player1 objects” condition in the same event, but before the raycast.
Thanks I’ve tried both ways and it seems raycasting just isn’t working, perhaps I’m not using the function correctly or something. I’ve read as much doco and looked at others code and the YouTube videos …just about to give up after a month or so of trying to get this basic thing to work