0
\$\begingroup\$

In game maker 8.0 I am using the d3d_draw_wall() function to draw vertical objects.

I wanted to clip the edges of the texture depending where they were at. I observed that if I input a fractional hrepeat and vrepeat the texture would clip the right or bottom portion of the sprite according to the percentage. The issue is that I cannot similarly clip the upper or left edges of the texture.

Does anyone know a simple way to do this? Due to efficiency I would rather not use the model construction functionality, as there are potentially hundreds of these, and changing texture mapping in a model can only be done by rebuilding a model, which is poor practice and egregiously expensive.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.