Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Clipping region when drawing the sprite

Author
Message
ace2
13
Years of Service
User Offline
Joined: 27th Sep 2011
Location:
Posted: 22nd Dec 2011 20:50
Is it possible to use a clipping region when drawing the sprite?
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 23rd Dec 2011 12:02
You could resize the sprite and re-scale / position the UV to suit it. It wouldn't be terribly hard to create some simple "clipSpriteLeft(amount#)" style functions that do it for you. There aren't any built in functions that I'm currently aware of that do it for you though.

Nitish
12
Years of Service
User Offline
Joined: 16th Dec 2011
Location:
Posted: 24th Jan 2012 13:29
u can do that using
directly on the image... then create multiple sprites...

-----------------------------------------
New To Game Develop... But with 10 years of programming experience

Login to post a reply

Server time is: 2024-11-23 01:43:25
Your offset time is: 2024-11-23 01:43:25