Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Begin Global Variables
- var y = 194;
- onEvent("instructbutton", "click", function(instruct) {
- setScreen("instructions");
- });
- onEvent("startgame", "click", function(gameon) {
- setScreen("game");
- });
- onEvent("image3", "click", function(manup) {
- setPosition("man", 0, 0, 100, 100);
- });
- onEvent("image1", "click", function(manleft) {
- setPosition("man", 0, 0, 100, 100);
- });
- onEvent("image2", "click", function(manright) {
- setPosition("man", 0, 0, 100, 100);
- });
- //Begin Falling Loop
- timedLoop(1000, function() {
- console.log("test");
- y = y +30;
- setPosition("man", 114, y, 100, 100);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement