Author Topic: Halloween demo scene using PNG images with transparency.  (Read 3759 times)

0 Members and 1 Guest are viewing this topic.

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Halloween demo scene using PNG images with transparency.
« 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
« Last Edit: October 31, 2020, 05:56:51 pm by Dav »

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
Re: Halloween demo scene using PNG images with transparency.
« Reply #1 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.

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: Halloween demo scene using PNG images with transparency.
« Reply #2 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
« Last Edit: October 31, 2020, 05:01:03 pm by Dav »

FellippeHeitor

  • Guest
Re: Halloween demo scene using PNG images with transparency.
« Reply #3 on: October 31, 2020, 05:01:47 pm »
Cool, Dav. Great job spreading the word of our lord Qbasic to a new guy.

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
Re: Halloween demo scene using PNG images with transparency.
« Reply #4 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. :)

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: Halloween demo scene using PNG images with transparency.
« Reply #5 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

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
Re: Halloween demo scene using PNG images with transparency.
« Reply #6 on: October 31, 2020, 06:02:43 pm »
Nice clouds. :)