Search Tutorials
Terrain Scrolling Code Here are the extra variables on the main timeline that are needed for the terrain scrolling... Comment: ---------------------------------------------- Comment: terrain variables Comment: ---------------------------------------------- Set Variable: "scrheight" = 450 Comment: tmov=terrain scroll speed Set Variable: "tmov" = 3 Set Variable: "twidth" = 9 Set Variable: "theight" = 9 These are some simple variables to set up how wide our terrain is. The terrain data variables below are 9 objects wide. Comment: NOTE: because all items are "LIVE" (they want to run down your screen) I have to tell the original items (the ones you see on the pasteboard) to "stop". When duplicated, movie clips automatically (a) become visible even if their original wasn't and (b) play. Set Variable: "n" = 32 Loop While (n<=128) Begin Tell Target (Chr(n)) Comment: cheat: because all my movie clips have a single character as their name and are between 32 and 128 on the ASCII chart I can simply tell ALL those clips to STOP (whether they exist or not). Stop End Tell Target Set Variable: "n" = n+1 End Loop
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|