Hello, so currently in my project, when you die, the pipes stay how they were before you died
example
However, I want to change this so it is different every single time. How would I go about doing this?
Hello, so currently in my project, when you die, the pipes stay how they were before you died
example
However, I want to change this so it is different every single time. How would I go about doing this?
Hello @ThePastaNebula! I don’t know how the original game was made, but maybe you can use Math.random() for this.
You can do it in pipe-height.js
. You would need to modify it. Currently, the position of the pipes are calculated randomly when application initializes.
initialize()
method to its own method.initialize()
, and also every time 'game:play'
event is fired.