Hi, im a new developer using Gdevelop to make a video game i’ve been cooking up since i was a kid.
In the game there are robotic enemies that are supposed to try to move towards you every time you get close to them. So i tried to make use of Raycasting to get their AI to look more advanced, but i can’t seem to find a reliable source on how to use it, plus it’s relatively just confusing me.
Can someone give me a proper explination on raycasting?
Raycasting sends an imaginary line from the source to either a destination point or at an angle for a set pixel length.
You pass a target object or object group as a parameter for the raycast, and the raycast will return the position where the raycast line collides with the first instance of the object(s).
Does that help?
1 Like
Pls can you also help to explain Dialogue trees
That’s a GDevelop feature I haven’t used very much, and I’m not overly familiar with. You may want to start a new thread on it, or look it up in the GDevelop wiki.
how exactly do each parameter work?
This example should help:
1 Like
THIS WAS SO HELPFUL.
Thank you for the reply