Big Broin
@noway15
95% Gray matter.
Basically I want to make a clicker game, but in Python's terminal. So I need a way to make it wait a set amount of time before delivering the currency
Python
SixBeeps The most common way to do this is through what's called an event loop. A game is typically structured entirely around this loop, and its job is to handle any sort of realtime events. I'd suggest you read up more if you want to familiarize yourself with this model.
You might be able to get away with running this loop through a new thread, but honestly it's better to implement it as the core of your game.2 years ago
Exactly what it sounds like. I know that I need audio from replit, but after that I'm kinda confused on what to do.
FloCal35 Both Coder100 and OldWizard209 (I won't ping them) answered you question but keep in mind that
Replit audio in python does not work for people viewing your projects
Because they are so new, spotlight pages can't play audio yet. So if you want to post it on the Apps page or if you want to share it with someone, instead of hearing the wonderful audio file, they will see an anoying error that stops the program2 years ago
Coder100 yeah, its in the docs, which are a bit hard to access:
https://docs.replit.com/tutorials/12-audio2 years ago
OldWizard209 Its all in the Docs.
First import replit and make sure to upload the sound file as .mp3 or .wav . Type this code:
from replit import audio
import time
audio.play_file("download.mp3")
time.sleep(10)
The time.sleep in the end is there because once the file is executed, repl abruptly stops. So it is there so that the audio can run.2 years ago
3
Did you get shot by an MBTI think I'd say that this is useless, dumb, and potentially destructive.
70
3
3
To be more specific, I need help with multiplying just the values in dictionaries without modifying the dictionary itself or even changing dictionarie
I'm working on a smallish program and I've decided to try my hand at the GetKey module.
Unfortunately, I've encountered a bit of a problem with the mo
btfuss I think you do:
key = getkey()
if key.up:
#whatever you want
Here is a resource: https://pypi.org/project/getkey/2 years ago
Honestly this was probably one of my dumbest ideas.
I basically just made a website that is pointless in every way. Enjoy if you can. Also maybe leave
HTML, CSS, JS
0
Big Repl Explore commemorationThis repl is the first program (well really, the Preface) in my relatively new Stellar Chronicles Python series. I hope you like it.
1
0
0
Ok guys I've decided to make an RPG in Python
But I have a problem.
This project is really long and really complicated.
So I've decided to reach out a
ChristopherDai Is this still available now?
You can check my doodle god project (unfinished) to see my skill tho.
I'm waiting for someone else to respond to a project for 3 days now and if he's not going to I'm ok to work with ya.
And I have confidence in art too, check https://repl.it/talk/share/DRAWQUIX-Betaor-Art-Editor-Unlimited-Projects/1210032 years ago
HermioneGrange2 hi, so about the project here is an image of the map for our game: (sorry I just can't put images on the chat)
Photo on 2-8-21 at 10.05 AM
tell me if it's too big, too small, or if I should add something or take away something. I just thought it would be a good way to visualize the different places you can go and the different directions you have to go to get to them.2 years ago
The name of this post pretty much says it all, but here's a quick recap.
This program is very annoying. Please don't wake it up. Most choices will lea
Python
I already know how to make it so that each letter appears individually, but not for questions. Can anyone help me with that?
RYANTADIPARTHI Solution
try this way.
scroll('question ? ')
something = input()
print(something)
`2 years ago
Coder100 with input? Just specify an empty input. Like this!
typewriter("your prompt here: ")
thing = input()
print(thing)
`2 years ago
InvisibleOne You can't with input, however, you could just do this:
#using my other function
scroll_print("What is one plus one?")
i = input()
if i == '2':
print("Yay, you are right!")
`2 years ago
I'm relatively new here, so could someone help me out? I'm trying to create a project but not sure how to make the text gradually show up instead of j
noway15 Well I have 3 different answers, so I guess I'll try each of them out and see which is best.2 years ago
RYANTADIPARTHI Solution
Try this.
import sys
import time
for x in "Something":
sys.stdout.write(x)
sys.stdout.flush()
time.sleep(0.05)
like that.
that should work2 years ago
bottlesandcaps @noway
import sys
import time
def scroll(str, speed=0.03):
for letter in str:
sys.stdout.write(letter)
sys.stdout.flush()
time.sleep(speed)
print()
scroll("what you want to appear type in here")
`2 years ago
Ten math problems, times you and does highscores.
FlaminHotValdez There's a bug at the end. % name name is undefined, think you mean name = input("What is your name?")3 years ago
This is the story of a professional gambler, YOU! Unfortunately, your luck will go down the toilet once you've played this just once.
Python