Button feedback on mouse over ... ?

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

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

Button feedback on mouse over ... ?

Postby Lucifell » Mon Mar 02, 2009 2:24 pm

Hello everyone, I'm new to this forum, and I've been enjoying Adventure Maker for a few days now, but I failed to find how to change the appearance of a hotspot when the mouse cursor gets over it.

Is it even possible ?

I'm thinking of upgrading my freeware version to a full one, so I should be able to include some VBScript in there if necessary.

Can anyone help this lost beginner ?
Lucifell
Member
 
Posts: 33
Joined: Mon Mar 02, 2009 2:09 pm

Postby ShadowHunter » Mon Mar 02, 2009 2:50 pm

Hi Lucifell,

This can only be done by using the KeyGuard plugin.

You can download the latest version (free) from my website:

www.shadowhunter.co.uk

Good luck,

With best regards,

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

Postby Lucifell » Mon Mar 02, 2009 5:43 pm

Marry me.
Lucifell
Member
 
Posts: 33
Joined: Mon Mar 02, 2009 2:09 pm

Postby Lyberodoggy » Mon Mar 02, 2009 6:19 pm

:lol: :lol: :lol:
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby Lucifell » Mon Mar 02, 2009 6:29 pm

I'm still having a hard time with this effect, since I want it to change a button's picture which is on a frame merged with my background frame.

Now, while I clearly saw in the manual that I should precise the frame name along with the TAG, I don't know how to do this.

Also, when my background frame is loaded (along with my merged frame), is the VBScript I wrote in the merges frame's properties read ? Or do I have to write it in the background frame's properties ... ?
Lucifell
Member
 
Posts: 33
Joined: Mon Mar 02, 2009 2:09 pm

Postby Mystery » Mon Mar 02, 2009 6:50 pm

Code: Select all
Sub KeyGuard_MouseEntersHotSpot(HotspotTAG)
Action.LoadAPicture Hotspot(HOTSPOT_NUMBER), "image1.jpg"
End Sub

Sub KeyGuard_MouseLeavesHotSpot(HotspotTAG)
Action.LoadAPicture Hotspot(HOTSPOT_NUMBER), "image2.jpg"
End Sub


* Use the appropriate number of the hotspot instead of HOTSPOT_NUMBER, and the correct name of your image instead of image1.jpg and image2.jpg
* You need to put the script in the merged frame's hotspot properties

I hope that you get it to work :)
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby Lucifell » Mon Mar 02, 2009 8:16 pm

* You need to put the script in the merged frame's hotspot properties


You mean in the "Frame properties" of the merged frame ?

I ran a few tests, and when I define my hotspots' locations for KeyGuard in the merged frame's properties, they don't seem to be read.

However, if I define the hotspots in the background frame properties, everything works ... as long as I don't have any hotspot in the background.

Now I understand I have to do something about detecting hotspot numbers ...
Is there another way ?
Lucifell
Member
 
Posts: 33
Joined: Mon Mar 02, 2009 2:09 pm

Postby ShadowHunter » Mon Mar 02, 2009 8:37 pm

Hi Lucifell,

Using merging will give problems sooner or later... I recommand you use HotSpot Magic to clone all common hotspots... do this first, prior to adding any hotspot to your frames, this way the ID of the common hotspots are the same on all frames and thus easy to use with KeyGuard.

Good luck.

With best regards,

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

Postby Lucifell » Mon Mar 02, 2009 11:14 pm

Hum, the thing is the purpose of the merged frame is to serve as User Interface, menus, score and various things I intend to paste on all backgrounds.

I read the description of your (much apreciated ^ ^) Hotspot Magic, and stumbled upon this question about merged frames being a better aproach to such problems.

Is there a way I could set a hotspot's number ? So that I could give them late numbers ... ? Or to detect the number of hotspots in a frame ?
Lucifell
Member
 
Posts: 33
Joined: Mon Mar 02, 2009 2:09 pm

Postby Imari » Mon Mar 02, 2009 11:57 pm

Merged frames seem to cause unexpected problems as your project grows. For placing hotspots on multiple frames, I'd really recommend using HotSpot Magic and not merging frames. HotSpot Magic adds the hotspots and creates revised thumbnails in seconds and is very easy to use.

To answer your other question, to change the number of a hotspot, right click on it. In the pop-up, select either "Move to top", "move up", "move down", or "move to bottom".

Hope this helps. :)
User avatar
Imari
VIP
 
Posts: 872
Joined: Fri Jun 20, 2003 4:49 pm
Location: Virginia, USA

Postby juhuwoorps » Tue Mar 03, 2009 12:16 am

if you use merging, GetMergedHotspot is your friend.

If you don't have any experience with scripting I would prefer Hotspotmagic.
juhuwoorps
Code Master
 
Posts: 622
Joined: Tue Jul 08, 2008 3:13 pm

Postby Lucifell » Tue Mar 03, 2009 9:23 am

GetMergedHotspotIndex saved the day, thanks a lot juhuwoorps !
Lucifell
Member
 
Posts: 33
Joined: Mon Mar 02, 2009 2:09 pm


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron