QB64.org Forum

Active Forums => Programs => Topic started by: Dav on October 31, 2020, 09:53:10 am

Title: Halloween demo scene using PNG images with transparency.
Post by: Dav on October 31, 2020, 09:53:10 am
I put this together to show a friend how easy it is in QB64 to make an animated scene with layers using .PNG images with transparency.  Thought I'd just post it here too.  This demo shows a moon in the background rising, a flying broom, house in the forefront, and a flying bat.  The house has windows and you can see the other images through the window. 

Download source -- > (35k)   

- Dav
Title: Re: Halloween demo scene using PNG images with transparency.
Post by: SierraKen on October 31, 2020, 04:52:37 pm
That's really cool Dav! I didn't see this at all until after I posted my Halloween picture. :)
One minor fix you need though, it says Line 43 has Illegal Function Call after the Moon has risen to the top of the screen. It's because your _FREEIMAGE variables are the wrong names.
But otherwise you did a great job! I like it.
Title: Re: Halloween demo scene using PNG images with transparency.
Post by: Dav on October 31, 2020, 04:57:35 pm
Sorry Ken - I guess I didn't hit 'Save' after working on the BAS before making the .zip.  Thanks for letting me know.  I'll update the .zip. 

Thanks for checking it out.  I know it's  novice kind of thing, but I was helping someone learn.

EDIT: Updated .zip - fixed the _FREEIMAGE stuff.

- Dav
Title: Re: Halloween demo scene using PNG images with transparency.
Post by: FellippeHeitor on October 31, 2020, 05:01:47 pm
Cool, Dav. Great job spreading the word of our lord Qbasic to a new guy.
Title: Re: Halloween demo scene using PNG images with transparency.
Post by: SierraKen on October 31, 2020, 05:16:26 pm
This taught me too Dav. I didn't know transparent .png's would work. I've never used them on here. :)
Title: Re: Halloween demo scene using PNG images with transparency.
Post by: Dav on October 31, 2020, 05:48:45 pm
I haven't used them much myself, but think I will more in the future.

I've updated the .zip yet again, this time adding a couple clouds floating by to complete the mood.

- Dav
Title: Re: Halloween demo scene using PNG images with transparency.
Post by: SierraKen on October 31, 2020, 06:02:43 pm
Nice clouds. :)