4

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 ?

Rob
  • 4,927
  • 4
  • 26
  • 41

1 Answers1

3

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!

Giraugh
  • 116
  • 6
  • I actually found this brilliant and completely free engine called SmartLight: http://cbna.forumactif.com/t10023-cbna-smartlight-moteur-de-lumiere. The documentation is in French but you can find a translation on the old GameMaker forums. – TheTurnipKnight Aug 03 '16 at 03:48