Is it possible to change a variable that is outside of scene.registerAfterRender? For instance, in the PG below, can “test” be set to true within scene.registerAfterRender so that the sphere’s position changes?
For the particular issue I’m trying to solve, the variable has to change within scene.registerAfterRender, and the true/false statement has to be applied outside of it. I’m just not sure if this is possible
Good to know that I’m on the right track with this! However, when the variable “time” reaches zero, and the variable “test” switches to true, the sphere does not move.
I see, that makes sense. Here’s my attempt at that with a function called “check.” Still no effect. I have limited programming experience, so I’m sure there’s something I’m still missing.