Silverlight game development tips: Star Wars subtitles

Source: Internet
Author: User

Sci-fi fans may be impressed by the effect of Star Wars subtitles. This subtitle expression has been popular in American movies, and even Superman movies and TVs have used this as opening and ending subtitles, today, I will show you how to create this effect in blend. Here is the image of Star Wars:

Maybe you think it is a little far-fetched to develop a game. I plan to use this as an introduction to bring out the key knowledge point about Silverlight special effects-Projection, which means Projection in direct translation, however, we generally call it a 3D transformation. RenderTransform is generally a 2D transformation. If Projection is used, it can produce very interesting results.

It is not difficult to find it. You can find it in the attribute by selecting any control in Blend.

First, create a project and add a user control StarCaption. You can use StarCaption as the basic container of the subtitle control. The size can be fixed or not fixed, now add a TextBlock to LayoutRoot so that all margins are automatically stretched,

Set the text alignment mode to Center, and adjust the text size and font until satisfied, and add some test text, this will be more intuitive

Now select Projection and set the rotation parameters to the following

Set Y of Global Offset to 150 and Y of Lacol Offset to 400,

Now, you only need to adjust Lacol Offset to see the effect. How is it good? Open the storyboard and make an animation, for example, the displacement operation of the Lacol Offset attribute with a length of one minute.

Now, add the control to MainPage, and perform a simple design to complete this special effect. The subsequent articles are related to Projection, although simple, however, it is recommended that you have a better understanding.

Source code: Click to download directly

Recommended Silverlight game development blog: dark blue right hand

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.