Rotating an actor from script with one image?

Non-platform specific questions.

Rotating an actor from script with one image?

Postby Guardian69 » Sun Jun 05, 2011 2:37 pm

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 :)
User avatar
Guardian69
 
Posts: 17
Joined: Thu May 26, 2011 9:05 pm
Location: United Kingdom
Score: 0 Give a positive score

Re: Rotating an actor from script with one image?

Postby Guardian69 » Sun Jun 05, 2011 3:16 pm

ah.. I think I've just read that rotating and scaling will be supported in GE1.5
User avatar
Guardian69
 
Posts: 17
Joined: Thu May 26, 2011 9:05 pm
Location: United Kingdom
Score: 0 Give a positive score

Re: Rotating an actor from script with one mage?

Postby jimmynewguy » Sun Jun 05, 2011 4:56 pm

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 98 times
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Rotating an actor from script with one image?

Postby BloodRedDragon » Tue Jun 07, 2011 11:32 am

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
Current projects:
Techno-Tank Arena: on hold
Techno-Tank SuperPortal (working title): 0.1%
Bowels of Galaxies: 35% (was a bit too optimistic)
User avatar
BloodRedDragon
 
Posts: 123
Joined: Tue Jan 29, 2008 10:07 pm
Location: The Underworld
Score: 5 Give a positive score

Re: Rotating an actor from script with one image?

Postby SuperSonic » Wed Jun 08, 2011 6:36 pm

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:
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest