RPG Style Text Dialogue
How do I make an rpg style text dialogue?
What is a rpg style text dialogue? How do you make a rpg style text dialogue? This script and codes were developed by Jimmy Lin on 11 December 2022, Sunday.
RPG Style Text Dialogue - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>RPG Style Text Dialogue</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet">
<div class="container-fluid"> <div>
<div class="quotes navbar-fixed-bottom" id="next"> <span class="quote"></span> </div> </div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
RPG Style Text Dialogue - Script Codes CSS Codes
body { font-family: Times New Roman;
}
h1 { font-family: Lobster;
}
.quotes { background: blue; color: white; border-color: white; border-radius:10px; border-style: solid; margin-right:auto; margin-left:auto; margin-top:20px; margin-bottom:10px; width: 98%; padding:20px; height: 150px; outline-color: blue; outline-style: solid; outline-offset: 2px;
}
.quote{ font-size:30px;
}
.author{ font-size:20px; font-style:italic; padding-left:50px;
}
RPG Style Text Dialogue - Script Codes JS Codes
$(document).ready(function(){ var author; var num=0; var length; getQuote();
function getQuote(){ var quotes = ["Mal: We're not gonna die. We can't die, Bendis. You know why? Because we are so...very...pretty. We are just too pretty for God to let us die.", "Jayne: Ten percent of nuthin' is...let me do the math here...nuthin' into nuthin'...carry the nuthin'...", "River: No power in the 'verse can stop me", "Wash: I'm a leaf on the wind- watch how I soar", "Early: You know, with the exception of one deadly and unpredictable midget, this girl is the smallest cargo I've ever had to transport. Yet by far the most troublesome. Does that seem right to you?", "Mr. Universe: Can't stop the signal, Mal. Everything goes somewhere, and I go everywhere.", "Jayne: Shiny. Let's be bad guys.", "Jayne: Time for some thrilling heroics.", "Tracy: When you can't run, you crawl, and when you can't crawl - when you can't do that...", "Zoey: You find someone to carry you"] randomQuote = quotes[num]; length = quotes.length; $(".quote").text(randomQuote);
}; $("#next").on("click", function(){ getQuote(); console.log(num); num++; if (num == length) { num = 0; }; }); $("#next").keyup(function (e) { if (e.keyCode == 38) { getQuote(); console.log(num); num++; if (num == length) { num = 0; } } });
}); //End of $(document).ready(function(){});
Developer | Jimmy Lin |
Username | odylic |
Uploaded | December 11, 2022 |
Rating | 3 |
Size | 2,635 Kb |
Views | 6,072 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Mark Down Previewer | 3,062 Kb |
Wikipedia Viewer | 2,333 Kb |
Local Weather | 2,560 Kb |
Twitch JSON API | 2,556 Kb |
Pomodoro Clock | 2,384 Kb |
Tic Tac Toe Game | 2,701 Kb |
Random Quote Generator | 2,674 Kb |
Portfolio Template | 2,581 Kb |
Portfolio Trial 1 | 3,730 Kb |
Calculator | 2,544 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Main page display | BarryKe | 4,562 Kb |
Pure CSS Tooltip | APinix | 2,815 Kb |
Wikipedia Viewer | Thalpha | 4,426 Kb |
Working around OS X Dynamic Scrollbars | Jrjenk | 2,279 Kb |
Underlined form fields | Mitchdot | 2,323 Kb |
Project MMetro beta | Atomicsong | 5,157 Kb |
Pure CSS read more toggle | Idered | 2,344 Kb |
Nice textured background | Hans | 2,659 Kb |
ASCII triangle image overlay | Mitchdot | 2,200 Kb |
Word Wrap Algorithm for Multiline Canvas Text | Peterhry | 2,349 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!