Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GameMaker 2D Visibility

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 ?

like image 438
TheTurnipKnight Avatar asked Oct 15 '25 04:10

TheTurnipKnight


1 Answers

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!

like image 106
Giraugh Avatar answered Oct 18 '25 09:10

Giraugh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!