i made a custom ray caster from giffpatch's tutorial :D How the custom ray caster works; (im not so good in explaining stuff so just look at the code to understand better) it shoots a sprite (a box) from the player to hit the level, while still moving it draws a line witht he pen extention. once it touches the level it resets back to the player and then turn 0.5(or whatever "Width of ray" value you set) and goes forward till hitting the level, repeat it 50 times will increasing the "Width of ray" in a temp value so it spreads, then we do the reverse side and its a ray cast!
@griffpatch for the tutorial :D