Untitled
unknown
plain_text
a year ago
3.5 kB
3
Indexable
Never
playSound("onlymp3.to---Reel-Fishing-OST---1.-Intro-7_AVraaPR6Y-256k-1659539016807.mp3", true); var FirstfishList = ["fish1.jpeg", "fish2.jpeg"]; var FirstrandomFish = ""; var fishGameClicks = 0; var redButtonClicks = 0; var fishInventory = []; //ALL SCREEN SETS onEvent("leaveShop", "click", function( ) { setScreen("pondScreen"); }); onEvent("leaveSell", "click", function( ) { setScreen("Shop"); }); onEvent("leave", "click", function( ) { setScreen("Shop"); }); onEvent("toInform", "click", function( ) { setScreen("how2play"); }); onEvent("backtomainmenu", "click", function( ) { setScreen("startScreen"); }); onEvent("goTOshop", "click", function( ) { setScreen("Shop"); }); onEvent("shopbutton", "click", function( ) { setScreen("buyscreen"); }); onEvent("SellButton", "click", function( ) { setScreen("sellscreen"); }); onEvent("button3", "click", function( ) { setScreen("pondScreen"); }); onEvent("fishGIF", "click", function( ) { what(); }); onEvent("niceButton", "click", function( ) { setScreen("pondScreen"); showElement("castButton"); }); onEvent("castButton", "click", function( ) { pondSet(); }); onEvent("catchGame", "click", function( ) { showElement("dontClick"); for (var i = 0; i < 1; i++) { setPosition("catchGame", randomNumber(20, 300), randomNumber(20, 430), randomNumber(30, 100), randomNumber(30, 100)); setPosition("dontClick", randomNumber(20, 300), randomNumber(20, 430), randomNumber(30, 100), randomNumber(30, 100)); fishGameClicks = fishGameClicks + 1; } checkFinish(); }); onEvent("dontClick", "click", function( ) { for (var i = 0; i < 1; i++) { setPosition("dontClick", randomNumber(20, 300), randomNumber(20, 430), randomNumber(30, 100), randomNumber(30, 100)); setPosition("catchGame", randomNumber(20, 300), randomNumber(20, 430), randomNumber(30, 100), randomNumber(30, 100)); redButtonClicks = redButtonClicks + 1; } checkFinish(); }); //Functions function what() { showElement("fishOn"); hideElement("fishGIF"); setTimeout(function() { setScreen("catchScreen"); hideElement("fishOn"); resetCatch(); }, 1000); FirstrandomFish = randomNumber (0, FirstfishList.length - 1); for (var i = FirstrandomFish; i < FirstfishList.length; i++) { setProperty("fishImage", "image", FirstfishList[i]); setText("IMPORTANT", FirstfishList[i]); } } function pondSet() { hideElement("castButton"); setScreen("pondScreen"); hideElement("fishOn"); fishGameClicks = 0; setTimeout(function() { showElement("fishGIF"); }, 1000); } function checkFinish() { if (fishGameClicks == 10) { hideElement("catchGame"); hideElement("dontClick"); showElement("fishImage"); showElement("niceButton"); appendItem(fishInventory, getText("IMPORTANT")); } else if ((redButtonClicks + fishGameClicks == 10)) { hideElement("dontClick"); hideElement("catchGame"); showElement("fishImage"); showElement("niceButton"); setText("text_area1", "Fish OFF!!!"); } } function resetCatch() { FirstrandomFish = randomNumber (0, FirstfishList.length - 1); for (var i = FirstrandomFish; i < FirstfishList.length; i++) { setProperty("fishImage", "image", FirstfishList[i]); setText("IMPORTANT", FirstfishList[i]); } hideElement("dontClick"); hideElement("fishImage"); showElement("catchGame"); hideElement("niceButton"); setText("text_area1", "CATCH THE FISH!!!"); setPosition("catchGame", 150, 225, 100, 40); setSize("dontClick", 100, 40); }