Ask coding questions

← Back to all posts
I'm trying to make a signup/login thing with Python
saltyChipps (0)

I need signup, login, and saving progress functions for my game. It's going to be a text adventure game, so it would be helpful if players could login to their account and pick up where they left off. I made a signup function, but I'm not sure how to make the last two.

Comments
hotnewtop
RYANTADIPARTHI (6020)

you can use if statements for this task.

saltyChipps (0)

@RYANTADIPARTHI I tried to do that in dbcontroller.py but it wasn't working.

RYANTADIPARTHI (6020)

@saltyChipps i mean without modules or db. Try just doing a basic one first, then go on to complex.

saltyChipps (0)

@B1gB0i dbcontroller is a file and I have while True: there because I want to to keep going.

P0GCHAMPB0i (56)

@saltyChipps yeah but `python
while True:
...

will be inf
saltyChipps (0)

@B1gB0i I know that. The game code is going to go in there, it's supposed to be that way. Making while alive == True: wouldn't make a difference.

P0GCHAMPB0i (56)

And theres no such thing as dbcontroller.

P0GCHAMPB0i (56)

You have to delet the while True: or else it will keep on going and going...