Random Options Inlinks Browse Raw Live Wayback Source Home Archives: pcmedia27
http://www.corel.com/clickandcreate/tips/tip9.htm (PC Media Número 27, 1997-02-17)

[Navigation Bar]

Corel Click & Create

Tip 9 - Simple screen scrolling in Click & Create

This tip illustrates how to create a simple screen scrolling effect in Click & Create. It will also show you how to use a random generator to create a new object on the frame.

Scrolling - Scrolling is the process of shifting an extra large playfield through a smaller, visible screen window. Using the scrolling feature in Click & Create will enable you to create arcade quality games. Scrolling is perfect for platform games because it lets you shift to a new part of the screen whenever the main object moves out of view. You can also use scrolling to generate a variety of attractive effects in presentations. For example, create extra long message banners and shift them sideways through the application window. You can also create detailed maps or playing areas which are larger than the actual screen. How about creating a large text filed and gradually revealing sections of the text during your application. All of these can be added to your Click & Create application using scrolling.

To create a scrolling effect and center the window position on the main character:

When using the scrolling feature in Click & Create, it is important that you center the window on the position of the main character or object. Before creating your scrolling application, you’ll need to make the playfield larger than the display window.

  1. In the Frame Editor, click Edit, Frame setup.
  2. In the Options tab, set the play area size to a large value. For example, 3000 x 1500.
  3. Click OK to apply the new play area size.
  4. Click File, Application setup.
  5. In the Window tab, set the Application window size. Make sure that the Application window is set smaller than the playfield size. 320 x 200 is the ideal size for scrolling.
  6. Place the Background objects, Active objects, and your main character onto the frame. In the Event Editor, enter the events to control the animation and movement of your main character and the other objects.
  7. In the Event Editor, click the New Condition box with the right mouse button. Double click the Special icon (), select Always/Never, Always from the pop-up menu.
  8. Click the box corresponding to the Always condition and under the Storyboard Controls icon () with the right mouse button. Select Scrollings, Center window position in playfield. Enable the Relative to button and click on the icon corresponding to your main character.
  9. Click OK.

These are the basic settings you will need to create a scrolling effect in your Click & Create application. Download the self-extracting file to look at a Click & Create file (scroll1.cca) that uses a simple scrolling effect. Examine the Frame Editor, Animation Editor, and Event Editor in detail to discover how you can create a scrolling effect for your Click & Create applications.

Click here to download the sample file. (67 KB)

[Click here for
previous tip][Click here
for next tip]

SEARCH

Click & Create

 


created with Corel WEB.DESIGNEROther useful links:
|
Copyright Information |