Sporadic behavior when starting a scene
ColorplayGames
PRO Posts: 69
I'm not sure whether this is a bug or whether I'm doing something wrong. I've been having some odd behavior within my game that pops up occasionally with both "Change Scene" and "Reset Scene". When the scene is changed/reset, occasionally my player actor will be sent flying (random direction with high speed, usually killing itself in the process!). It's only happening sporadically so I can't track down what might be causing it. Any thoughts?
EDIT: problem solved. Sorry, should have worked at it a bit more before posting Apparently global variables are not reset when changing/restarting a scene (which makes total sense but is not something I had even thought about before) so it was taking some variables I'd been using for movement and making my poor actor zoom about.
EDIT: problem solved. Sorry, should have worked at it a bit more before posting Apparently global variables are not reset when changing/restarting a scene (which makes total sense but is not something I had even thought about before) so it was taking some variables I'd been using for movement and making my poor actor zoom about.