ragingdemonz
Member
Hello all. I'm currently converting a JavaScript Pseudo3D racing game. So far i've gotten everything to work fairly well however, i've run into a huge problem. I'm trying to clip a sprite based on the cameraY, if a Hill is blocking the way or if it's not in view, to draw only part of it, or none at all
The tutorial I'm following uses the JS function
which looks very similar to draw_sprite_part. The only major difference is the last 2 parameters, which is what i need to set the width and height so the image looks like its appearing smaller when farther away. If i use
It seems to work, and the only thing missing is the clipping I'm really at a loss here for what to do. Is there a function for draw_sprite_part with width and height paramaters ?
The tutorial I'm following uses the JS function
Code:
drawImage(img,sx,sy,swidth,sheight,x,y,width,height);
Code:
draw_sprite_stretched()