This extension contains optimized functions written in GML to add field of view to your projects.
Use the Inside function to check if and object is inside a field of view. You can specify any width and distance of the FOV in the arguments as well as the object id.
The draw functions work as any of the build-in functions. You can set the color and alpha before calling them and choose whether to fill or draw only outline.
For further information please check the help file or contact me on the email.
WARNING The raycasting is time consuming and calling the functions on too many objects at the same time will slow the game down.
Version 1.0.0. Published September 3, 2014
Created with GameMaker: Studio v1.4.1398
You can only review assets you've bought.
To use it in GMS2 move the code from
DRAW BEGIN to DRAW
and it works fine and very fast! It's really great! You gave my project a big move forward! Thank you!
Thank You very much, i found it very useful and helpful.
A great script, saved me a good amount of time.
Had issues using it with tiles, which I resolved by switching the camera's "Begin Draw" event to "Draw", in case anyone else has the same issue.
Otherwise, fantastic! Worth the money.
Although I can't get it to work in my own game, and I can't figure out what I'm doing wrong.
edit: removed the tiles!
Simple and easy to implement! Great work!
Awesome extension for the price.