How to load animated gif with VBScript?

This forum is meant for requesting technical support or reporting bugs.

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

How to load animated gif with VBScript?

Postby Mystery » Fri Apr 14, 2006 12:07 pm

Hi
I haven't found any instruction how animated gifs can be loaded into a hotspot with VBScript (only for non animated pictures).
Is there a possibility to do this with VBScript? (If possible I don't want to use here the gif sequencer or a video)
Thank you in advance,
Mystery
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby Candle » Fri Apr 14, 2006 2:13 pm

I found :
Action.LoadGraphicFile
Code: Select all
Similar to the Action.LoadAPicture command, but for more advanced users. It loads a graphic file from the "Areas" sub-folder of the project folder into a property. For example, to change the cursor that is associated with the hotspot number 5, you should type:

   Hotspot(5).MouseIcon = LoadGraphicFile("FILENAME")
   Hotspot(5).MousePointer = 99

where FILENAME is the name of the graphic file, located inside the "Hotspot Graphic Files" sub-folder of the "Project Resources", which corresponds to the directory "c:\...\PROJECTNAME\Areas". The supported graphic types are: BMP, JPG, GIF (not animated), WMF, EMF, ICO and CUR. Replace FILENAME with an empty string to unload the picture.


See if that will work.
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3077
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby Mystery » Fri Apr 14, 2006 3:04 pm

Thank you Candle. I have seen this, too. But if you read it carefully, it says:
The supported graphic types are: BMP, JPG, GIF (not animated), WMF, EMF, ICO and CUR.
But I would like to load an animated GIF. I wonder if there is a possibility that supports also animated GIFs in VBScript.
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby Candle » Fri Apr 14, 2006 3:55 pm

Sorry didn't see that part.
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3077
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby GM-Support » Wed Apr 26, 2006 6:57 pm

Hi,

I am afraid VBScript does currently not support animated GIF's.

GM-Support
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm

Postby Mystery » Wed Apr 26, 2006 8:33 pm

Hi GM,

Thank you for your answer. :)
I can solve it otherwise, it just would have been easier for this particular project.
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron