Search found 4 matches

by Gonggrijp
Sun Aug 16, 2020 3:22 pm
Forum: General Discussion
Topic: Possible infinite loop
Replies: 0
Views: 5849

Possible infinite loop

I’m trying to create a game with basically 2 phases: One phase will be a visual novel, the other will be more RPG-like. I want to move the sprite around with keyboard inputs during the second phase, but I keep running into errors. My code: $ move_allowed = 1 while move_allowed == 1: if pygame.key.ge...
by Gonggrijp
Fri Aug 14, 2020 11:20 am
Forum: General Discussion
Topic: Moving sprites with keyboard inputs
Replies: 4
Views: 6001

Re: Moving sprites with keyboard inputs

Thank you so much! It works now!
by Gonggrijp
Fri Aug 14, 2020 9:56 am
Forum: General Discussion
Topic: Moving sprites with keyboard inputs
Replies: 4
Views: 6001

Re: Moving sprites with keyboard inputs

Thank you! You helped me a lot.

Just one more question: How do I import Pygame? (I’m completely new at python so I don’t know)
by Gonggrijp
Fri Aug 14, 2020 8:05 am
Forum: General Discussion
Topic: Moving sprites with keyboard inputs
Replies: 4
Views: 6001

Moving sprites with keyboard inputs

I'm creating an RPG visual novel, and I want the main character to move when I press a certain key on my keyboard. I've been looking all over the internet and nothing that I found really helped me. The problem isn't the moving of the character, but the problem is that I don't know how to make the ga...