Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / printing text on top of an animation

Author
Message
Jcoggins
18
Years of Service
User Offline
Joined: 6th May 2006
Location:
Posted: 31st Mar 2008 01:32
I know how to print text at the mouse's coordinates while an animation is running but the text appears behind the annimation when the mouse moves into the area covered by the animation.

How do I get the text to appear in front of the annimation?

Jason
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 31st Mar 2008 05:06 Edited at: 31st Mar 2008 05:06
I've used this TextToSprite function for a few things, but I've found if you use more than a couple of sprites on screen things slow down a lot. Anyway, you might find something useful in this.



Call it with this.

TextToSprite("Show this", mousex(), mousey(), rgb(255,255,255),2,rgb(0,0,0),2,2,2)

I looked around but couldn't find where I got this. Someone else posted it in the forums.

wildbill
18
Years of Service
User Offline
Joined: 14th Apr 2006
Location:
Posted: 31st Mar 2008 05:55
Try using the command "play animation to image" and then paste your text/sprite.
Jcoggins
18
Years of Service
User Offline
Joined: 6th May 2006
Location:
Posted: 1st Apr 2008 15:02
The "play animation to image" worked perfectly. Thanks.

Jason

Login to post a reply

Server time is: 2024-11-25 06:32:05
Your offset time is: 2024-11-25 06:32:05