Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
> Mask Device Fonts, A little tut to show you it can de done.
DPC
post Aug 24 2005, 04:32 AM
Post #1


Regular Dot
Group Icon
Group: *Premier*
Posts: 115
Joined: 13-May 05
From: Australia
Member No.: 3,960





Mask Device Fonts Tutorial

Ok as most of you Swishers all know it's not posible to Mask Device Fonts ....
I found a very simple way to do this and thought I'd show you how it's done.

First of I am using the scroller from my Sprite scroller tut to make this tutorial


normaly when you use a Device font and then hit the "Use Bottom Object as Mask" Tab like this

you will get these errors in the dedug panel

and if you press yes when asked if you want to play the file you will see this error Message Sad.gif


Now we Know we can't hit the tab but we can use Actionscript to place a mask like so.
CODE
textSprite.setmask(Mask);


The code is set up like this

textSprite = the name of the sprite you want to mask. setmask = Tells the movei to set a Mask on the sprite we just named. (Mask= name of the shape we are setting to be a mask);

in my scroll sprite the build up looks like this



as you can see the Sprite "Box" is marked in Blue and includes the above stated code, and the Sprite "textSprite" is within (Below the BOX Sprite) and at the very bottom of the "Box" Sprite you can See the shape "Mask" it is set to the exact size of the hole in my Sprite scroller, so that the text in the "textsprite" can only be seen where the Mask is..

and almost forgot here is the settings used for this tut



Some of you will be asking what is it good for if i can't mask Device Fonts so what, well try hitting the <>HTML tab.

you will see only device fonts are allowed so if you want to scroll it and mask it you will need to set a Mask with Action Script.

TUT FILES

Cheers Patrick
 
+Quote Post  Go to the top of the page
*D*
post Aug 24 2005, 10:32 AM
Post #2


Merry KissMoose
Group Icon
Group: Main Team
Posts: 15,990
Joined: 18-May 04
From: North Pole
Member No.: 2





thumbsup.gif Nice Patrick

Thankyou
 
+Quote Post  Go to the top of the page
Adrian
post Aug 24 2005, 10:35 AM
Post #3


Addicted Dot
Group Icon
Group: Moderator
Posts: 15,965
Joined: 26-September 04
Member No.: 763





Thankyou patrick.
 
+Quote Post  Go to the top of the page
RedDragon
post Aug 25 2005, 08:08 AM
Post #4


insert coin
Group Icon
Group: Main Team
Posts: 5,344
Joined: 24-May 04
From: Maastricht
Member No.: 35





Great trick! Thx for adding smile.gif

Has annoyed me for such a long time.. finally a fix smile.gif
 
+Quote Post  Go to the top of the page
DPC
post Aug 25 2005, 09:33 AM
Post #5


Regular Dot
Group Icon
Group: *Premier*
Posts: 115
Joined: 13-May 05
From: Australia
Member No.: 3,960





If you knew how many times i pulled my hair out on this problem untill i realized the answer is so simple to solve...

Glad you like my solution

Cheers Patrick
 
+Quote Post  Go to the top of the page
cmonney
post Aug 25 2005, 11:08 AM
Post #6


~ Soul Rebel ~
Group Icon
Group: Main Team*
Posts: 3,625
Joined: 18-May 04
From: a mind-altering psychedelic trip
Member No.: 3





cool lil' tut, Pat!!!


thumbsup.gif
 
+Quote Post  Go to the top of the page
Eddie_K
post Aug 25 2005, 02:18 PM
Post #7


Hush now, I'm thinking...
Group Icon
Group: *Premier*
Posts: 3,977
Joined: 25-May 04
From: Heaven
Member No.: 47





Very nice solution Thanks thumbsup.gif

The download doesen't work though victory.gif

Eddie
 
+Quote Post  Go to the top of the page
DPC
post Aug 26 2005, 01:43 AM
Post #8


Regular Dot
Group Icon
Group: *Premier*
Posts: 115
Joined: 13-May 05
From: Australia
Member No.: 3,960





Just retested the download works perfect g[1].gif

I'll post i in the downloads

Cheers Patrick
 
+Quote Post  Go to the top of the page
yusuf
post Aug 28 2005, 03:57 AM
Post #9


New Member
Group Icon
Group: Member
Posts: 21
Joined: 20-August 05
From: Odense
Member No.: 6,308





THX Patrick..
Nice tut!
 
+Quote Post  Go to the top of the page
berepoot
post Aug 28 2005, 01:06 PM
Post #10


New Member
Group Icon
Group: Member
Posts: 18
Joined: 29-December 04
Member No.: 1,588





Good tut, and usefull for anyone
 
+Quote Post  Go to the top of the page

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 29th July 2010 - 11:07 PM
Property in America | Life Insurance | Broadband | Home Insurance | Submit articles