This forum is meant for requesting technical support or reporting bugs.
Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
by juhuwoorps » Sat Nov 22, 2008 9:30 am
Hi at all!
Is there a way to get the hotspot coordinates from a hotspot with VB-Script?
Thanks!
-
juhuwoorps
- Code Master
-
- Posts: 622
- Joined: Tue Jul 08, 2008 3:13 pm
by ShadowHunter » Sat Nov 22, 2008 9:59 am
Sure
Y = HotSpot(0).Top
X = HotSpot(0).Left
Width = HotSpot(0).Width
Height = HotSpot(0).Height
Change the 0 into the hotspot ID you need...
Good luck,
With best regards,
ShAdOwHuNtEr
-

ShadowHunter
- Forum Admin and Games Page admin
-
- Posts: 1304
- Joined: Fri Jun 06, 2003 10:37 pm
- Location: Belgium
-
by juhuwoorps » Sat Nov 22, 2008 10:21 am
Ah great!
Thank you!
-
juhuwoorps
- Code Master
-
- Posts: 622
- Joined: Tue Jul 08, 2008 3:13 pm
by GM-Support » Mon Dec 15, 2008 1:07 am
Please note that you must divide the numbers by 15 if you want the unit to be in pixels. For example:
Y = HotSpot(0).Top / 15
-
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