PirateX12
|
  |
| Joined: 01 Dec 2010 |
| Total Posts: 220 |
|
|
| 29 Jan 2014 01:50 PM |
Simple way of creating a short-clip in JS without having trouble :) -- -------------------- confirm("Are you ready to play this epic game?"); var age = prompt("Please confirm your age:"); if (age < 18); { console.log("You're allowed to enter."); } if(age >= 18) { console.log("Sorry, but you can't play this game"); } console.log("Snow White and Batman were hanging out at the bus stop, waiting to go to the shops. There was a sale on and both needed some new threads. You've never really liked Batman. You walk up to him."); console.log("Batman glares at you."); var userAnswer = prompt("Are you feeling lucky, punk?"); if (userAnswer === ("Yes")); { console.log("Batman hits you very hard. It's Batman and you're you! Of course Batman wins!"); } if (userAnswer === ("No")); { console.log("You did not say yes to feeling lucky. Good choice! You are a winner in the game of not getting beaten up by Batman."); } confirm("Move onto next scene?"); console.log("Cop: "We've done all we could to resurrect The Flash, sire, but any results did not show conclusive""); console.log("Gordon: "Try using that Electricity Shocker"); console.log("*You walk into the room*"); var userAnswer2 = prompt("Cop: "You're not allowed to be here sir. Are you gonna move or am I going to have to make you?""); if (userAnswer2 = ("No, you'll have to make me")); { console.log("Cop: "Alright wise guy!""); console.log("*You beat up the cop*"); console.log("Cop: "Security!""); } else { console.log("Cop: "Wise Choice.") }
confirm("Move onto scene 3?") ---------------- Post in comments if you think I should continue into Scene 3, 4, and 5, and see what happens to Flash and You!
|
|
|
| Report Abuse |
|
|
jjs12346
|
  |
| Joined: 03 Aug 2012 |
| Total Posts: 4182 |
|
|
| 29 Jan 2014 01:51 PM |
| http://www.roblox.com/Forum/ShowForum.aspx?ForumID=40 |
|
|
| Report Abuse |
|
|
danipie2
|
  |
| Joined: 06 Sep 2012 |
| Total Posts: 38572 |
|
| |
|
|
| 29 Jan 2014 01:53 PM |
Guessing you did this as a lesson in code academy?
I remember doing that a while back.
crush, kill, destroy, swag |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2014 01:54 PM |
Yes this is from code academy.
I remember that, it is very simple. |
|
|
| Report Abuse |
|
|