Cool Guy
@CoolGuy27
An Ethical hacker in progress and overall cool guy who does HTML and C# Ping me if you need help
does anyone know a bookmarklet autoclicker?
memekakra90909090 javascript:var DELAY = 0;var autoClickerStyleElement = document.createElement("style");autoClickerStyleElement.innerHTML="*{cursor: crosshair !important;}";document.body.appendChild(autoClickerStyleElement);function addClicker(e) {if(!e.isTrusted) {return;}if(e.target.classList.contains("auto-clicker-target")) {e.target.classList.remove("auto-clicker-target");} else {e.target.classList.add("auto-clicker-target");}document.body.removeChild(autoClickerStyleElement);document.body.removeEventListene9 months ago
So let's just say I am working on a secret project (DEFINITELY NOT) And i need to sleep the console in js for it. how do I do that?
https://repl.it/@C
Bookie0 I've googled it for you: check out this StackOverflow page
Basically, according to the page, you'll have a function that returns a setTimeout. Then in the second function, you can call the first function sleep() and as argument, you put the number of milliseconds you want to wait. And you can also use it in a loop.
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function demo() {
console.log('Taking a break...');
await sleep(2000);
console.log('Two2 years ago
JBloves27 It seems like you cant, but you can use seperate functions. You can wait, then call it when you want. like this:
function function1() {
// stuff you want to happen right away
console.log('Welcome to My Console,');
}
function function2() {
// all the stuff you want to happen after that pause
console.log('Blah blah blah blah extra-blah');
}
// call the first chunk of code right away
function1();
// call the rest of the code and have it execute after 3 seconds
setTimeout(function2 years ago
I made this platformer, but I can't for the life of me think of how to add a platform with colliders. Can someone help?
HTML, CSS, JS
Baconman321 Note that what these guys say will only work if the object is 100% covering the other object. You should check if the position plus the width/height overlaps. In other words, you should check if the position plus the width and height overlaps the other object's width, height, and position. I don't have code, but you're smart, you can figure it out. Just remember, it's something along the lines of width/height/position.2 years ago
RYANTADIPARTHI Solution
Make an if statement to check if the positions are the same. that will check for collisions.2 years ago
InvisibleOne To check if something has collided with another object, you just check if their locations are the same2 years ago
how do I get an input alert() and an cancel or yes alert()
InvisibleOne let answer = prompt("Yes or No?")
if (answer == 'Yes'){
alert("Yay! You said yes!")
} else {
alert("Drat, you said no...")
}
2 years ago
epiclink29 do
java.util.*
Scanner in = new Scanner(System.in);
String alert = in.nextLine;
2 years ago
I just want to know how to use them.
might be coming in a new game soon!
EpicGamer007 ReplAuth is a way to login with repl.
This is how you do it in python.
This and this is how you do it with nodejs
2 years ago
I made a simple python eval thing, and I would like to know if I can do this in C#?
Python
What coding language does Roblox® use? I could not find this anywhere else, so repl devs take this down if you want, I just wanted to know.
RayhanADev G’day @CoolGuy27
Just to let you know while Roblox does use Lua, the version on Repl.it is not the same as the one on Roblox! Cheers,
~ Ray <32 years ago
Can you stop a setinterval? this is it but post needs 50 chars
RYANTADIPARTHI Use the clearInterval() method. Check these links out.
https://www.w3schools.com/jsref/metwinclearinterval.asp2 years ago
I have been working on this project with other coders @hello1964 @ComputingSquid @lightningrock @Kookiez , and the save system we have been working on
HTML, CSS, JS
Coder100 localstorage saves everything as a string!
Have:
let score = Number(localStorage.getItem("..."));
score ++;
and you see it works.2 years ago
Is it possible to clear repl.it localstorage data? (if so, how?)
How do I add an html button that exits the code?
I would like to create a c# interprete on a html repl.
Can someone walk me through it?
Coder100 You can't, but you can have them give you a download link:
Click here to download
`2 years ago
RYANTADIPARTHI you have to connect a c# file to HTML, like for scripting javascript, you can do this -- - This is for javascript, for c#, you have to do another tag for c2 years ago
I have made this repl, and I would like to add autoclickers to it. How would I do this?
HTML, CSS, JS
Baconman321 XD
window.setInterval(()=>{document.getElementById('button').click();},1);
paste that into console and oof, no clicking today XD hacks2 years ago
Baconman321 Just make code that automatically ups the the score using https://www.w3schools.com/jsref/metwinsetinterval.asp window.setInterval();2 years ago
Coder100 setInterval is your friend :)
setInterval(() => {
x += 2;
}, 1000)
In this example, x (inside your clicker game, I presume that is your score) gets added by 2 every 10 seconds.2 years ago
Write lines of code in this clicker game!
(Working on adding leaderboard!)
For us coders to play and be lonely, cuz we got no friends
PLEASE upvote
HTML, CSS, JS
DishanBhattacha I really love this.
I have some ideas for this I would like to implement. I created my own version of this project so if you'd like to see what I did, I can invite you to my project.
Basically I added a coder buddy buyer that costs 100k and changed the font to black and green (to mimic the terminal thing).2 years ago
This is a simple number counter I made in C#, but if you put in a number that is too high, it stops before finishing. Can someone help me?
C#
Coder100 ok, based on what people say,
using System;
using System.Collections.Generic;
class Program {
static void Main (string[] args)
{
List numbers = new List();
try
{
Console.WriteLine("What number do you want me to count to?");
int answer = Convert.ToInt32(Console.ReadLine()) + 1;
for (int i = 0 ; i < answer; i++)
{
numbers.Add(i);
Console.WriteLine(numbers[i]);
}
Console.WriteLine(" ");
Console.WriteLine($"Succesfully counte2 years ago
Coder100 btw why are you storing these things inside a list?
You appear to be unusing the list.2 years ago
I have studied @DynamicSquid 's tutorial, but I cannot find the night language on Repl. Is it on repl, or is it not there yet?
Epicmuffinepic It is not the winner of the language jam, therefore, it is not on repl.it. You should fork the repl then run the code, or listen to their instructions on how to use the night language2 years ago
Count to numbers! My first kinda successful repl. Make sure to input a number! There is a bug with opening it in a new tab, if you do a high enough nu
C#
CoolGuy27 Count to numbers! My first kinda successful repl. There is a bug with opening it in a new tab, if you do a high enough number it stops without finishing. I would love help on how to fix that.2 years ago