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.
The purpose of this code is to speed up, slow down and show the "Car" based on values. My problem is when I accelerate, it will switch between cars without any issue.
The issue is, the image stays on Car_3 when slowing down. Below is the code I'm using, any suggestions would help.
And if you have any questions, I will do my best to answer them.
Try to define Car_X images, so they wouldn't be in the same place on screen and check wgat happens. I am pretty positive that Car_2 is still displayed, as it should, just below Car_3, but I would like clarification, that this is indeed the problem.
Ocelot wrote: ↑Mon Apr 19, 2021 2:05 am
Try to define Car_X images, so they wouldn't be in the same place on screen and check wgat happens. I am pretty positive that Car_2 is still displayed, as it should, just below Car_3, but I would like clarification, that this is indeed the problem.
Yup, that seems to have been the issue, I'm still getting the hang of coding. So now, the question I asked myself is why it was doing that from what I recalled, when you pulled up a new scene, it should remove everything and display the new background along with any image called.....
And that's when I realized I wasn't using the scene function, rather the screen function. I switched out "screen" for "scene" and it seems to have resolved my issue. Thank you for the suggestion!