I'm trying to create a simple laser sight effect, but it seems almost impossible considering you can't set picture's angle having zero as a starting point, only increase or decrease it by X degree.
Here's my not working script:
(I'm using Dcupu's Picture Alternative and Ozu's self variables, both work perfectly fine)
Getting the right angle between the mouse and player works perfectly fine, the problem is that my picture freaks out, getting wrong angles after a few "turns" or keep spinning.
UPD. Ok, I've almost figured it out
Added this instead
◆Si:Script:s["ROT2"] != s["ROT"]
◆Script:$gameScreen.rotatePicture(44, s["ROT"]);
◆Script:s["ROT2"] += s["ROT"]
◆
:Fin
Here's my not working script:
(I'm using Dcupu's Picture Alternative and Ozu's self variables, both work perfectly fine)
Getting the right angle between the mouse and player works perfectly fine, the problem is that my picture freaks out, getting wrong angles after a few "turns" or keep spinning.
UPD. Ok, I've almost figured it out
Added this instead
◆Si:Script:s["ROT2"] != s["ROT"]
◆Script:$gameScreen.rotatePicture(44, s["ROT"]);
◆Script:s["ROT2"] += s["ROT"]
◆
:Fin