Our transparent animated gif problem...

This forum is meant for people to share their knowledge by writing their own tutorials for Adventure Maker.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Our transparent animated gif problem...

Postby Stitches » Thu Mar 06, 2014 11:31 am

Hi guys. I've spent the last week scouring the net for help with attempting to code something to solve the transparent animated gif problem. Whilst we always look at alpha channels and compressed images via gimp, I have been wondering whether- just for the time being, it would be useful to try to make a plugin for on screen sprites. Kind of like the animated gif plugin AM has, but with transparency support. I obviously am having trouble and most likely going over things I'm sure you guys here have already pickled your heads over... but what the smeg...

I found this article on the subject from microsoft...
http://blogs.msdn.com/b/vbteam/archive/ ... gertz.aspx

As far as I can tell there might be a way to do the transparent via colour gif animation. I scoured and couldn't find anything to create some kind of controller or something to allow for PNG images. From the rhetoric about, it would appear there are folks all over having the PNG/animated gif transparency problem when it comes to VBScript. If there are any expert programmers with a spare ten minutes there to go over that code and tutorial above, perhaps you can figure some way to allowing for a hotspot to have this feature. I dunno... maybe it's staring us right in the face. Or maybe I'm just pickled here.
http://www.youtube.com/user/MaynardStaly/videos and http://libertycap.webs.com
“With a bit of luck, his life was ruined forever. Always thinking that just behind some narrow door in all of his favorite bars, men in red woolen shirts are getting incredible kicks from things he’ll never know.”
User avatar
Stitches
Active Member
 
Posts: 71
Joined: Tue Nov 12, 2013 3:56 am
Location: UK

Re: Our transparent animated gif problem...

Postby Vengeance66 » Thu Mar 06, 2014 3:21 pm

I used video for animations. In one game I had GIF animation, but I found that if you have transition, the would become white. Then, I tried using more than one animation on one frame, and I couldn't find a solution. Simon gave me the idea of using video for animations. It's great and it's working! :-)
Stay a while and listen...

Rainbow Enterainment - http://rainbowenter.com/
User avatar
Vengeance66
Administrator
 
Posts: 630
Joined: Wed Oct 13, 2010 2:17 pm
Location: Macedonia

Re: Our transparent animated gif problem...

Postby reneuend » Fri Mar 07, 2014 4:22 am

Ditto!
I also have been creating videos and using them in hotspots. It's interesting some of the things you can do with this. You'll soon see what I mean if I ever get my projects finished! :?
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2687
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Re: Our transparent animated gif problem...

Postby Stitches » Mon Mar 10, 2014 11:56 am

I'm using the video method myself anyhow. But I've been on the bimble, since until PNG support is available (which looking about it appears grim) the transparent animated gif thing would really open the software up. Even if just a wee plugin. So I need a coder with a little time. Somebody who can make sense of source code and such. I've noticed that most engines like Adventure game studio use what the old amiga games used- a sprite wheel. A selection of images with a single alpha colour background. We have all seen them. Now I found this source code (though no idea what to do with it) which pertains to masks. I wondered if there would be a way to integrate something like this into our animated gif plugin. Somebody out there have a gander. I don't know if this has been tried but something about the descriptions made me think about it.


*****Edit I found 2 other source codes.*"***
Within these zips may be just the right thing to inspire one of the coders on here... maybe... Agh! Straws... just out of... my reach! :v :D

Reasons for having animated transparent gif hotspots:

Sprites (with collision and movement plugins working to assist)
Make switches graphics improve
Allow for more unique 3rd person plugin

This could be accomplished with just the ability to make the animated gifs transparent. If a hotspot could be a moving sprite of 256 colour (until some clever bobs works out the code for PNG stuff) it could make for all sorts of versatility in our games. The video overlay method is very restrictive if you're using the 3rd person plugin. It can never cross over.
Attachments
Animated_G46220142002.zip
(70.31 KiB) Downloaded 38 times
CODE_UPLOAD28951162000.zip
(46.15 KiB) Downloaded 37 times
Fast_Mask_69814472002.zip
(117.58 KiB) Downloaded 39 times
http://www.youtube.com/user/MaynardStaly/videos and http://libertycap.webs.com
“With a bit of luck, his life was ruined forever. Always thinking that just behind some narrow door in all of his favorite bars, men in red woolen shirts are getting incredible kicks from things he’ll never know.”
User avatar
Stitches
Active Member
 
Posts: 71
Joined: Tue Nov 12, 2013 3:56 am
Location: UK


Return to Post Your Own Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron