Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. //Begin Global Variables
  2. var y = 194;
  3.  
  4. onEvent("instructbutton", "click", function(instruct) {
  5. setScreen("instructions");
  6. });
  7. onEvent("startgame", "click", function(gameon) {
  8. setScreen("game");
  9. });
  10.  
  11. onEvent("image3", "click", function(manup) {
  12. setPosition("man", 0, 0, 100, 100);
  13. });
  14. onEvent("image1", "click", function(manleft) {
  15. setPosition("man", 0, 0, 100, 100);
  16. });
  17. onEvent("image2", "click", function(manright) {
  18. setPosition("man", 0, 0, 100, 100);
  19. });
  20.  
  21. //Begin Falling Loop
  22.  
  23. timedLoop(1000, function() {
  24.  
  25. console.log("test");
  26. y = y +30;
  27. setPosition("man", 114, y, 100, 100);
  28.  
  29. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement