External folders...

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

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

External folders...

Postby ZeornWarlock » Tue Aug 12, 2008 10:31 pm

I want the player to be able to install a picture (JPG) of their choosing into an external folder on their hard drive, so AM can call it and save it in a hotspot.

Simply put, I want to add user portraits to my game. Is this possible?

Thanks.

ZW.
You have to make some to understand some.
User avatar
ZeornWarlock
Expert Member
 
Posts: 347
Joined: Tue Jun 05, 2007 12:52 am
Location: In front of the monitor.

Postby mercedes » Tue Aug 12, 2008 11:33 pm

do you want to launch a separate exe for them to install..?


*Edit*
Sorry i'm french takes me a minute to register what u are saying..I see thats not what ur asking..:P


Peace~
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby Candle » Wed Aug 13, 2008 12:01 am

Well in the help file it says!

LoadAPicture

Dynamically loads a graphic file into a hotspot. The syntax is:

Action.LoadAPicture Hotspot(HOTSPOT_NUMBER), "FILENAME"

where HOTSPOT_NUMBER is the number that identifies the hotspot into which you want to load the graphic file and FILENAME is the name of the graphic file. The graphic file must be 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.

If you want to remove the hotspot picture (i.e. to make the hotspot become transparent), replace FILENAME with an empty string, as shown below:
Action.LoadAPicture Hotspot(HOTSPOT_NUMBER), ""

See if that helps you out.
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: 3055
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby ZeornWarlock » Wed Aug 13, 2008 2:10 am

Candle,

Yeah, I remember seeing that at some point in the past. I wanted to ask because to be fair, I was not sure about it.

Thanks for the help. :)

ZW.
You have to make some to understand some.
User avatar
ZeornWarlock
Expert Member
 
Posts: 347
Joined: Tue Jun 05, 2007 12:52 am
Location: In front of the monitor.

Postby Candle » Wed Aug 13, 2008 3:33 am

No problem.
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: 3055
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby Lyberodoggy » Wed Aug 13, 2008 6:56 pm

You can have them load the picture from its current location by loading a textbox and have them type the whole filename and directory, store it to a variable and use this code:

Action.LoadAPicture Hotspot(HOTSPOT_NUMBER), filenamevariable

You can also use Dir commands of VB.

That's the easy and unsafe way.

The other way is to create an external program that copies a picture defined by the user to the external folder with the name "portrait.JPG", then just use that to load the pic.
User avatar
Lyberodoggy
Administrator
 
Posts: 2519
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 2 guests

cron