Lingo
Created and designed by Vivienne Trulock for ilikecake, 2005
Navigation with Markers
This exercise shows how to create a basic navigation system using markers and simple lingo. See finished movie.
Import buttons and images.
Arrange buttons on stage.
Use the 'Modify > Align' command to easily layout the sprites.
Create markers as below by clicking the mouse on the white row at the top of the score, and typing in the words.
Stretch the sprites to frame 9 and copy and paste them 4 times to frame 49, as shown.
Place images on the stage.
Sprite Scripts
Create a sprite script attached to the next button, which reads as follows
go to marker(+1)
end
Create a sprite script attached to the back button, which reads as follows:
go to marker(-1)
end
Scripts on each of the other sections reference markers by their name:
go to "insect"
end
To write the scripts quickly, write one script, copy and paste it into another script window and change the appropriate marker name.
Then select the relevant sprites in the score:
Then attach the behaviour to them all at the same time:
Write a frame script to loop the playback head on the last frame of each section
go to the frame
end
Once the script is written, just pull it off the cast to use it again. Place the loop script as shown.
Save, Publish and Create Projector.
Completed Movie
The final navigation movie should look like this.
.
.
.
-