|
|||
|
Last things Term Project Specs PLP Team Assignments Key control code Including Blackjack Including game prototype How to Lingo Sample How to Lingo Summary Blackjack project How to Lingo midterm Fallout Game, Part 1 Walker-scroller project Lingo Walker project Unique random selection Case assignment Scripted animation Hints for Part 3 Term project Timeline vs. scripting Materials from UB Course "How To Lingo" Project Syllabus |
Key Control CodeHere's the code to drive the walker character in the Fallout game using the right and left arrow keys. Insert this handler in your main movie script:
-- recognize arrow keys
on keyDown
global goRight, goLeft
goRight = false
goLeft = false
case (the keyCode) of
124: goRight = true
123: goLeft = true
end case
end keyDown
If you want to download the complete code for the finished Fallout game, here's the zip file. It's about 10 megabytes, so be patient. | ||
|
|||