Change background source with VBscript ?

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

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

Change background source with VBscript ?

Postby unwired » Tue Aug 22, 2006 3:22 pm

is it possible to change background picture using VBscript ?
(like for hotspots ?)

If it is not possible maybe i should use a screen-wide hotspot as a background ....
unwired
Member
 
Posts: 19
Joined: Mon Jul 24, 2006 12:20 pm

Postby ShadowHunter » Tue Aug 22, 2006 3:35 pm

Hi,

You can change the contence of a hotspot by using VB-script however to change the background of a frame... I have not found a way to do that but that doesn't mean it is not possible.

You could indeed use a frame width hotspot as a workaround.

I hope GM or some else can answer this question because I would like to know this also :wink:

Kind regards,

ShAdOwHuNtEr
User avatar
ShadowHunter
Forum Admin and Games Page admin
 
Posts: 1304
Joined: Fri Jun 06, 2003 10:37 pm
Location: Belgium

Postby GM-Support » Sun Sep 10, 2006 2:43 pm

Hi,

Just use the following code:

Code: Select all
Action.LoadAPicture BackgroundObject, "FILENAME"


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.

The "BackgroundObject" is one of the objects listed at the end of the following page:
http://www.adventuremaker.com/help/vbscript_objects.htm

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


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests