|
Hello! I have built a simple score system that gives you a point whenever you fall off-world. I now want to increase the height of my walls by 1 meter everytime this happens. I've written the following script: If I put it like this, the wall doesn't move because OldScore is always the same as PointSystem.score. However, if I put the defining of var OldScore outside function Update( ) the wall lifts off indefinitely. The solution is probably very logical, but I can't find it. Thank you for your help!
(comments are locked)
|
|
var OldScore = PointSystem.score; //super simple example Well, for my point of view, +1 to this, because it's equal to the solution of mine :) I've just posted it some seconds before. However, pay attention, because you've "encapsulated" the RaiseWall inside the Update.
Apr 30 '12 at 07:30 PM
BiG
D'oh, right you are, fixed it now, and thanks!
Apr 30 '12 at 10:42 PM
Seth Bergman
(comments are locked)
|
