class Shot : Actor {
Sprite _sprite;
float _vx;
float _vy;
void SetVisible(bool visible) {
_sprite.SetVisible(visible);
}
.
.
.
}
Then, I have another class that declares an array of Shot type:
class Ship : Actor {
Shot[] _shots;
.
.
.
}
But when I do something like _shots.SetVisible(false); i have an "Out of range" error. So, i've declared the array as Shot[] _shots(10); but I have an "Expected ;" error in that line.
Is it an AngelScript bug or is it something i'm doing wrong?
By the way, thanks a lot for this fantastic and FAST script engine. ;)
See you soon!