I can't even begin to understand how you guys don't have text effects. What I mean by this is how text can do a quick swipe into the page or a diffuse effect or even a vertical swipe where the text shows up line by line
Text Effects-NONE!
Collapse
X
-
Originally posted by Robertp View PostI can't even begin to understand how you guys don't have text effects. What I mean by this is how text can do a quick swipe into the page or a diffuse effect or even a vertical swipe where the text shows up line by line
-
-
Originally posted by Bags View PostAll those effects can be done just fine in AMS, albeit not as dramatic as you're thinking I am sure, but nonetheless just fine...
Comment
-
-
Originally posted by Robertp View PostI can't even begin to understand how you guys don't have text effects. What I mean by this is how text can do a quick swipe into the page or a diffuse effect or even a vertical swipe where the text shows up line by line
Took me ten minutes to write the code...just get creative man, you'll be amazed what AMS can do.
PUT THIS CODE ON A BUTTON FOR TESTING
Code:function TextSweepFromLeft(sParagraphName, sMyText, iParagraphX, iParagraphY) -- Paragraph object properties table. tblParaProps = {}; tblParaProps.Text = sMyText; tblParaProps.FontName = "Arial"; tblParaProps.FontSize = 10; tblParaProps.FontWeight = FW_NORMAL; tblParaProps.FontAntiAlias = true; tblParaProps.FontScript = ANSI_CHARSET; tblParaProps.FontUnderline = false; tblParaProps.FontStrikeout = false; tblParaProps.FontItalic = false; tblParaProps.Width = 5 + (String.Length(sMyText)*8); tblParaProps.Height = 40; tblParaProps.Y = iParagraphY; tblParaProps.X = -tblParaProps.Width; tblParaProps.ScrollVertical = SCROLL_AUTO; tblParaProps.ScrollHorizontal = SCROLL_OFF; tblParaProps.Alignment = ALIGN_LEFT; tblParaProps.BGStyle = BG_TRANSPARENT; tblParaProps.BGColor = Math.HexColorToNumber("000000"); tblParaProps.BorderStyle = BORDER_NONE; tblParaProps.BorderColor = Math.HexColorToNumber("FFFFFF"); tblParaProps.ScrollStyle = SCROLL_STANDARD; tblParaProps.SkinFile = ""; tblParaProps.TooltipText = ""; tblParaProps.Enabled = true; tblParaProps.Visible = true; tblParaProps.Cursor = CURSOR_ARROW; tblParaProps.ResizeLeft = false; tblParaProps.ResizeRight = false; tblParaProps.ResizeTop = false; tblParaProps.ResizeBottom = false; tblParaProps.ColorNormal = Math.HexColorToNumber("FFFFFF"); tblParaProps.ColorHighlight = Math.HexColorToNumber("FFFFFF"); tblParaProps.ColorDown = Math.HexColorToNumber("FFFFFF"); tblParaProps.ColorDisabled = Math.HexColorToNumber("C0C0C0"); tblParaProps.HighlightSound = SND_NONE; tblParaProps.HighlightSoundFile = ""; tblParaProps.ClickSound = SND_NONE; tblParaProps.ClickSoundFile = ""; Page.CreateObject(OBJECT_PARAGRAPH, sParagraphName, tblParaProps) for x = 1, (iParagraphX + tblParaProps.X) do Paragraph.SetPos(sParagraphName, x, tblParaProps.Y); end end TextSweepFromLeft("Paragraph1", "This is some text right here.", 550, 500)
Last edited by Centauri Soldier; 11-03-2008, 12:37 AM.
Comment
-
-
Here, I decided to play with it just a bit more so as to demonstrate the power of AMS.
Code:Text = {}; -- Paragraph object properties table. tblParaProps = {}; tblParaProps.Text = "my text here"; tblParaProps.FontName = "Arial"; tblParaProps.FontSize = 10; tblParaProps.FontWeight = FW_NORMAL; tblParaProps.FontAntiAlias = true; tblParaProps.FontScript = ANSI_CHARSET; tblParaProps.FontUnderline = false; tblParaProps.FontStrikeout = false; tblParaProps.FontItalic = false; tblParaProps.ScrollVertical = SCROLL_AUTO; tblParaProps.ScrollHorizontal = SCROLL_OFF; tblParaProps.Alignment = ALIGN_LEFT; tblParaProps.BGStyle = BG_TRANSPARENT; tblParaProps.BGColor = Math.HexColorToNumber("550000"); tblParaProps.BorderStyle = BORDER_NONE; tblParaProps.BorderColor = Math.HexColorToNumber("FFFFFF"); tblParaProps.ScrollStyle = SCROLL_STANDARD; tblParaProps.SkinFile = ""; tblParaProps.TooltipText = ""; tblParaProps.Enabled = true; tblParaProps.Visible = true; tblParaProps.Cursor = CURSOR_ARROW; tblParaProps.ResizeLeft = false; tblParaProps.ResizeRight = false; tblParaProps.ResizeTop = false; tblParaProps.ResizeBottom = false; tblParaProps.ColorNormal = Math.HexColorToNumber("FFFFFF"); tblParaProps.ColorHighlight = Math.HexColorToNumber("FFFFFF"); tblParaProps.ColorDown = Math.HexColorToNumber("FFFFFF"); tblParaProps.ColorDisabled = Math.HexColorToNumber("C0C0C0"); tblParaProps.HighlightSound = SND_NONE; tblParaProps.HighlightSoundFile = ""; tblParaProps.ClickSound = SND_NONE; tblParaProps.ClickSoundFile = ""; function Text.SweepFromLeft(sParagraphName, tblParagraphProperties, iParagraphStopX, iParagraphStopY, iSpeed) tblParagraphProperties.Width = 6 + (String.Length(tblParagraphProperties.Text)*7); tblParagraphProperties.Height = 30; tblParagraphProperties.Y = iParagraphStopY; tblParagraphProperties.X = -tblParagraphProperties.Width; Page.CreateObject(OBJECT_PARAGRAPH, sParagraphName, tblParagraphProperties) for x = 1, (iParagraphStopX + tblParagraphProperties.X) do Paragraph.SetPos(sParagraphName, x, tblParagraphProperties.Y); for y = 1, (100 - iSpeed) do Paragraph.SetPos(sParagraphName, x, tblParagraphProperties.Y); end end end --change the last number in the function to change the speed of the text effect (0-100) Text.SweepFromLeft("Paragraph1", tblParaProps, 550, 500, 0);
Comment
-
-
Comment