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.

DarkBASIC Discussion / sprite animation

Jacob G
Years of Service
User Offline
Joined: 12th Jul 2012
Posted: 14th Jul 2012 21:57
i understand sprite animation because im able to do it in C#,c++,lua, and many other languages. But im confused with this one, im using get image and cutting out the image well im confused because usually it says width and height right now it says.

left,top,right,bottom well logically you would just put 0,0,0,0
to load the top left of the image but thats not the case because i keep getting errors. my image has width of 96 and height of 95 where do i put the width and height ??

Jacob Gardam
Fluffy Rabbit
User Banned
Posted: 14th Jul 2012 22:33 Edited at: 14th Jul 2012 22:46
No, left, top, right, and bottom are in pixels.

The width is equal to right-left, and the height is equal to bottom-top.

For example, you might put get image 1,0,0,100,100, which means a 100x100 sprite that is in the top left corner of the sprite sheet.

The program doesn't automagically recognize sprite dimensions unless you specify them using math.

For example:

Login to post a reply

Server time is: 2020-08-05 08:54:35
Your offset time is: 2020-08-05 08:54:35