Join Joseph Labrecque for an in-depth discussion in this video Collectibles generation, part of Adobe Animate CC: HTML5 Canvas and WebGL.
- For this simple game, collectibles will fall from the sky,…which must be retrieved by the player.…Similar to our handling of the player symbol instance,…we will dynamically create these collectible instances…and place them upon the stage.…Additionally, we will use randomization functions…to provide some variation to our instances.…So let's open up our Actions panel, and the first thing…we'll do, right underneath generatePlayer,…is we're going to invoke generateCollectibles,…and we'll pass in the number of collectibles that we wish to…generate, I'm gonna say 30, but you can always adjust this.…
Directly underneath generatePlayer,…I'm gonna create a new function…called generateCollectibles,…and we're passing in that number so I'll just call that (n).…Immediately we're going to create a for loop that's…going to be based upon that number, and so…for, and we'll declare a variable i,…and set that equal to 1.…We'll set this to run as long as i is less than…or equal to n, so less than or equal to 30,…and then for each iteration of our loop,…
This course focuses on using Flash Professional CC to create a shared pool of content for a set of related projects: an HTML5 video, an interactive ad, and a simple web-based game. Author Joseph Labrecque shows how to use Flash's familiar toolset to build and manage assets that fit into a modern web publishing workflow.
- Using code snippets and actions
- Assembling and animating a scene for video
- Rendering the video
- Programming a game in HTML5 Canvas
Skill Level Intermediate
1. Working in HTML5 Canvas and WebGL
2. Animating HTML5 Video
4. Programming a Game in HTML5 Canvas
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.