Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
# why while error!?
screen test:
for item in ['a','b','c']:
pass
$ count = 10
while count > 0:
# process....
$ count -= 1
# The game starts here.
label start:
show screen test
"test.."
"test..test.."
"test..test..test.."
return
Because it's a bad idea to use while loop inside of a screen. You can move it to python but it would still be a sh!tty idea. Handle your logic outside of the screen and use screens to display information and enable player to interact with the game.
xela wrote:Because it's a bad idea to use while loop inside of a screen. You can move it to python but it would still be a sh!tty idea. Handle your logic outside of the screen and use screens to display information and enable player to interact with the game.
It is a nice advice.
It has been very useful.
Thank you very much.