I would like to implement in GameMaker exactly the same thing as in this article: http://www.redblobgames.com/articles/visibility/.
The code for it is available there in different languages, but I can't figure out how to effectively port it to GML. Every raycasting solution I tried leads to fps completely dying.
Could someone with more knowledge than me help ?
i have encountered this problem too, it mainly stems from the gamemakers execution speed. check out the gm tech blog post on this here.
Also, this will probably work best as a shader as they run faster than object step events.
good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With