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.

Dark GDK / Drawing sprites to a bitmap

Author
Message
Malboro Jones
14
Years of Service
User Offline
Joined: 10th Dec 2009
Location: Wales - UK
Posted: 27th Nov 2010 09:06
I'm trying to make a GUI class for my game and everything seems fine except the 'form sprites' don't show.

What I'm going is:


The making of the form seems fine because if I don't delete the 9 sprites the form shows on screen at 0, 0 but it this is the 9 sprites not the sprite I want to show.

Also if I try pasting the image created from the bitmap with the 9 sprites I get a black square at the position the form should be and of the correct size.

Now my guess is that the 9 sprites aren't being drawn to the bitmap and therefore aren't being shown because they are black.

Any idea if there's a way around thisss?
Thanks, Malb

Don't make war, make tea.
Malboro Jones
14
Years of Service
User Offline
Joined: 10th Dec 2009
Location: Wales - UK
Posted: 27th Nov 2010 09:13
Never mind
After nearly 2 hours trying to fix it I post the above thread and then 30 seconds later I find a way around it:

After creating the 9 sprites use paste sprite, the forms now show

Don't make war, make tea.
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 27th Nov 2010 16:27
I made an awsome GUI:
http://forum.thegamecreators.com/?m=forum_view&t=178271&b=22
It's got lots of functionallity.


Yes, I'm a GUI pusher......

The fastest code is the code never written.
Malboro Jones
14
Years of Service
User Offline
Joined: 10th Dec 2009
Location: Wales - UK
Posted: 28th Nov 2010 06:17
Ye I saw that just after posting while I was searching for an answer, might give it a go, looks good

Don't make war, make tea.

Login to post a reply

Server time is: 2024-11-19 16:31:25
Your offset time is: 2024-11-19 16:31:25