Skip to content
Sign UpLog In
Profile icon

Umar Qureshi

@UmarQureshi4
Repls
Community
UmarQureshi4
UmarQureshi4
shared a Post
1 year ago
How do you fix a missing function which isn't being executed in a program in Pygame?
UmarQureshi4
UmarQureshi4
shared a Post
1 year ago
Hello Repl.it community, I am creating a game for my manga comic franchise Rebound Ready, which combines basketball and Pokémon. I have created a sco
Spacecraft
Spacecraft
It defaults to 3 points because those are the conditions you've set it at. You set points=0 on line 308, but then immediately change it to 3 in the IF statement on lines 311 and 312. blRecOri is set to 0 on line 300: blRecOri=0 Then you use an IF statement on lines 311, 312 to change points to 3 if blRecOri meets the conditions. Since 0 passes both conditions in the IF statement, it passes: if blRecOri >= 0 and blRecOri 0 and blRecOri <= 45: `1 year ago
UmarQureshi4
UmarQureshi4
shared a Post
1 year ago
Hi all, So basically, I'm working on a project for a manga comic franchise that I have created, and the project is a game that is built using Pygame.
UmarQureshi4
UmarQureshi4
shared a Post
2 years ago
So, thanks to @InvisibleOne for the help on the AI thingamajig. But even with the suggestion made by @InvisibleOne, out of all three selections for th
UmarQureshi4
UmarQureshi4
@InvisibleOne suggested an idea to make sure every option that you select is unique. But the problem is still appearing. @InvisibleOne had this idea: Have all your choices in a list: then when you pick one of those choices using random, remove that choice from the list so it won't be picked again choice1 = random.choice(list) list.remove(choice1) choice2 = random.choice(list) list.remove(choice2) and so on2 years ago
Coder100
Coder100
please explain, where did these option come from? What tool/software are you using?2 years ago
VulcanWM
VulcanWM
Can you explain more better? wdym?2 years ago
UmarQureshi4
UmarQureshi4
shared a Post
2 years ago
Me again. Quick question - if a player wants to build a section of his/her headquarters, then how can I make it so that I have a list of options that
UmarQureshi4
UmarQureshi4
Uhh, now it's displaying the arrays/lists on the terminal - how do I fix this? * *2 years ago
InvisibleOne
InvisibleOne
Have all your choices in a list: list = ['bla bla bla', 'lol', 'another choice'] then when you pick one of those choices using random, remove that choice from the list so it won't be picked again import random choice1 = random.choice(list) list.remove(choice1) choice2 = random.choice(list) list.remove(choice2) and so on `2 years ago
UmarQureshi4
UmarQureshi4
shared a Post
2 years ago
@InvisibleOne, 'tis me again, and I need help (again). Run my code and find the part where it says about government fund, the day and the game file na
InvisibleOne
InvisibleOne
Well, Coder100 was right, but the error you have now is because you put then which isn't really a keyword we use like that in python, you just put the : so it should be: if ww2 == "1': then is more of a lua thing.2 years ago
Coder100
Coder100
change lines 104-109 to this: while playing: os.system('clear') print("Game-File Name:", username) print("Day:", day) print("Government Fund:", fund) input() the reason for this is because print doesn't give extra time, so python immediately runs the loop again.2 years ago
UmarQureshi4
UmarQureshi4
Where should I put the 'input()'? 2 years ago
UmarQureshi4
UmarQureshi4
shared a Post
2 years ago
Hiya! So, I need help with a function in my game, Stormfront. Basically, I need a simple way of saving my game using a specific keyword. Is there an
UmarQureshi4
UmarQureshi4
@InvisibleOne, please keep the 'Save Progress' file - that'll help me throughout the programming of the game.2 years ago
InvisibleOne
InvisibleOne
The easiest way is just to use replit db. You can save a key like this: from replit import db db[keyname] = data and then get the value of a key from replit import db value = db[keyname] An example would be saving a dictionary holding the user data from replit import db import os userData = { "name" : "username", "score" : 0, "level" : 1, } Save it using their replit username replitUsername = os.environ['REPL_OWNER'] def save(data): db[replitUsername] = data def restore(userna2 years ago
UmarQureshi4
UmarQureshi4
shared a Post
2 years ago
So, I'm currently developing a game in the Javascript editor P5.JS called 'Pixel the Alien', based on the classic retro platformer format from back in
UmarQureshi4
UmarQureshi4
shared a Post
2 years ago
So, I'm trying to add a picture in HTML. It's a file, and when I insert it, it says the picture can't be shown. Is it possible to add a file picture
DerpyUser69
DerpyUser69
Same question. Does anyone know?1 year ago
SUHASTADIPARTH1
SUHASTADIPARTH1
You can also upload a file on repl.it and then you can get that name of the file and put that name of the file inside the source tags. Please mark my answer if it helps. Thank you,2 years ago
SUHASTADIPARTH1
SUHASTADIPARTH1
Just copy the image address or copy image and paste that code into the source attribute in the image tags.2 years ago
UmarQureshi4
UmarQureshi4
shared a Post
2 years ago
Hey, Question: Can we share and host any website on Repl.It? Umar
UmarQureshi4
UmarQureshi4
Thanks, Kookiez! I just wanted to know! ;)2 years ago
Kookiez
Kookiez
Yes, you can make a website on repl.it and share it to your friends, if that's what you mean.2 years ago