Page 1 of 1

Rotating an actor from script with one image?

PostPosted: Sun Jun 05, 2011 2:37 pm
by Guardian69
Hi Guys,

Is there anyway I can rotate an actor from script so I only have to use one image?

i.e In the moondefender tutorial the rocket is rotated by using 30 images. I would like to have one image of a rocket and use some sort of actor rotate function in script.

I expect this is another daft question but I could find the answer by searching the forums.

Cheers,
Guardian :)

Re: Rotating an actor from script with one image?

PostPosted: Sun Jun 05, 2011 3:16 pm
by Guardian69
ah.. I think I've just read that rotating and scaling will be supported in GE1.5

Re: Rotating an actor from script with one mage?

PostPosted: Sun Jun 05, 2011 4:56 pm
by jimmynewguy
yes but if you need a rotated sprite you could always use ferals image rotator

viewtopic.php?f=8&t=6218

or rotsprite.exe if somehow that doesn't suit you

rotsprite.zip
(47.94 KiB) Downloaded 97 times

Re: Rotating an actor from script with one image?

PostPosted: Tue Jun 07, 2011 11:32 am
by BloodRedDragon
Or DST'S?

http://game-editor.com/forum/viewtopic.php?f=1&t=9418
And then, use the sprite sheet as a new animation with the correct amount of horizontal and vertical frames. Then you would use animpos and animindex in the Script Editor to map each frame to movement, or whatever you need to do :D

Re: Rotating an actor from script with one image?

PostPosted: Wed Jun 08, 2011 6:36 pm
by SuperSonic
Is there anyway I can rotate an actor from script so I only have to use one image?

Yup. You need the GE 1.5 prototype which is currently available at game-editor.net :)
To rotate an object with 1.5, use "SetRotation(value);" :wink: