While experimenting with the rotate sprite function I got the following error message:
The code from this part of the script is:
Code: ags
If anybody could shed some light on the problem it would be greatly apreciated. It's been quite a while since I've done any scripting so it may be a pretty obvious problem.
Quote
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x0043B598 ; program pointer is -42, ACI version 2.71.894, gtags (1,130)
(...)
in Global script (line 76)
The code from this part of the script is:
DynamicSprite *Plane=DynamicSprite.CreateFromExistingSprite(1);
Plane.Rotate(angle(0,1));
RawDrawImage(vectors[0].x, vectors[0].y, Plane.Graphic); // line 76
Plane.Delete();
If anybody could shed some light on the problem it would be greatly apreciated. It's been quite a while since I've done any scripting so it may be a pretty obvious problem.