Changing Depth Value of Hotspot/Text

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

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

Changing Depth Value of Hotspot/Text

Postby cpkspikyhair » Fri Jun 08, 2012 8:25 pm

Wow, I haven't been here in a while.

Not sure if any of you guys remember me, but I used to frequent this forum as an avid game/application creator. I haven't had much time to get back into my hobby, but I hope to start again.

Anyways, I have a quick question about text and hotspots.

When I create text on AM, I can't seem to make it appear on top of a hotspot that contains a picture. Is there any attribute for depth that I can use to fix this problem? I'm no newbie to scripting, although I haven't done it in a very long time.
PSPPC GameMaker!! Where you can find PSP and PC games up for download!
User avatar
cpkspikyhair
Games Page Administrator
 
Posts: 425
Joined: Thu Jun 28, 2007 1:49 pm
Location: On Mars (Yes There Is Water :) )

Postby reneuend » Fri Jun 08, 2012 10:25 pm

Welcome Back! ...and yes, i remember some of your posts from the distant past.

For the record, the latest AM version is 4.6.1. :)

There isn't a way to display text over a hotspot that I've heard of. BUT! When I created the AM Journal plugin, I created text character hotspots that would overlay on a book page. If I wanted to have text over a hotspot, I would build something similar using scripting and create a character image for each alphabet character, numbers and certain special characters. Then I would use code to translate text to images and display them in hotspots.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Re: Changing Depth Value of Hotspot/Text

Postby mercedes » Sat Jun 09, 2012 4:23 am

cpkspikyhair wrote:Wow, I haven't been here in a while.

Not sure if any of you guys remember me, but I used to frequent this forum as an avid game/application creator. I haven't had much time to get back into my hobby, but I hope to start again.

Anyways, I have a quick question about text and hotspots.

When I create text on AM, I can't seem to make it appear on top of a hotspot that contains a picture. Is there any attribute for depth that I can use to fix this problem? I'm no newbie to scripting, although I haven't done it in a very long time.


...It's one of the reasons why.. if i used pictures w/ hotspots, I found it easier to use pictures that represent text as well...

They would still be text, only instead it would be pictures of text done with transparency..
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby cpkspikyhair » Sat Jun 09, 2012 4:46 pm

Haha alright, thanks. How about using a .PNG file in a hotspot? AM seems to only take .bmp, .jpg, and .gif, if I remember correctly.
PSPPC GameMaker!! Where you can find PSP and PC games up for download!
User avatar
cpkspikyhair
Games Page Administrator
 
Posts: 425
Joined: Thu Jun 28, 2007 1:49 pm
Location: On Mars (Yes There Is Water :) )

Postby reneuend » Sat Jun 09, 2012 9:28 pm

You're correct. No PNGs :(

However, you could make it interesting and use avi! ;)
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby mercedes » Sun Jun 10, 2012 6:31 am

cpkspikyhair wrote:Haha alright, thanks. How about using a .PNG file in a hotspot? AM seems to only take .bmp, .jpg, and .gif, if I remember correctly.


Thought of something else..:D
You could use Keyguard too...
For instance, use TEXT with hover, over top of the hotspot..
Or tool-tips ..that works too..Only you can't use sentences..just one word..:D
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby cpkspikyhair » Sun Jun 10, 2012 10:19 pm

Although aren't tool-tips only there when you are hovering over something?

I want the text to always be there.

Also, I'm working on the KeyGuard Studio registration now.
PSPPC GameMaker!! Where you can find PSP and PC games up for download!
User avatar
cpkspikyhair
Games Page Administrator
 
Posts: 425
Joined: Thu Jun 28, 2007 1:49 pm
Location: On Mars (Yes There Is Water :) )

Postby mercedes » Mon Jun 11, 2012 5:44 pm

Although aren't tool-tips only there when you are hovering over something?


Yes, that's right...probably have better luck with KG..
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby reneuend » Tue Jun 12, 2012 2:10 am

KG won't help with overlaying text over hotspots permanently. You'll have to do this manually. Can you give an example of what you are trying to accomplish?
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby cpkspikyhair » Wed Jun 13, 2012 8:09 pm

Here's a quick example, the gray box is a hotspot with a picture in it and the "text" is the text that I am trying to display on top of that hotspot.
Attachments
ex.jpg
Example of text over hotspot.
ex.jpg (3.12 KiB) Viewed 4716 times
PSPPC GameMaker!! Where you can find PSP and PC games up for download!
User avatar
cpkspikyhair
Games Page Administrator
 
Posts: 425
Joined: Thu Jun 28, 2007 1:49 pm
Location: On Mars (Yes There Is Water :) )

Postby ShadowHunter » Wed Jun 13, 2012 10:21 pm

Hi,

You can never have an AM native text on top of a hotspot :cry:

The text is displayed in a so called "label", a label is a windowless control which means that the text is drawn on the parent form, which is the background of AM.

A hotspot is a picturebox control and is placed on the form, so it will always be on top.

KeyGuard uses bitblt to draw from the OCX on the AM background, so it will also be covered by hotspots. To overcome this problem I create my so called MagicBackGround, which merges all hotspots with the background and makes the actual hotspots transparent. With the special KeyGuard methods you can virtual manipulate the hotspot behaviour like it was done from AM.

I hope this makes a bit sense.

With best regards,

ShAdOwHuNtEr
Last edited by ShadowHunter on Thu Jun 14, 2012 11:58 am, edited 1 time in total.
User avatar
ShadowHunter
Forum Admin and Games Page admin
 
Posts: 1304
Joined: Fri Jun 06, 2003 10:37 pm
Location: Belgium

Postby reneuend » Thu Jun 14, 2012 3:14 am

Here is how to do what I suggested...

Image
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Morsy » Thu Jun 14, 2012 4:14 am

Welcome back :D
User avatar
Morsy
Active Member
 
Posts: 88
Joined: Wed Feb 08, 2012 11:15 pm
Location: USA

Postby mercedes » Fri Jun 15, 2012 7:23 am

What I was mentioning before..would be and is the easiest way to go..

Any picture related software ap, has TEXT in it...

Just create the text, similar to any picture...use transparency, saveas .GIF and voila..Put it in any hotspot..:D

It looks exactly like what Renuend did...it's just so much easier..
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron