Share My Creation Reading a sprite sheet

NeoTechni

Well-Known Member
Licensed User
Longtime User
A single file is a lot easier to manage both in the program and out
-takes less space (1 header vs the number of files)
-1 load command
-easier to make changes
 

gunper

New Member
Licensed User
Longtime User
button

How to using those sprite sheet on a button as bitmap?
I can't figure out how pick a rect out of those 4x4 pictures
i have 16 pictures in (button_bit_bitmap.png) file.
Is there a way to cut 1 of 16 picture as bitmap? set it as button image?
I can draw 1 of frame out 16 pictures no problem.


game_buttons(button_id).SetBackgroundImage(button_bitmap_id)

it works, but, show 1 big 4x4 as button.



 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…