actor rotation

Non-platform specific questions.

actor rotation

Postby BloodRedDragon » Fri Apr 18, 2008 8:29 pm

can you rotate an actor so that all its scripts would be for the way that it is facing (eg if you wanted an actor to move up when you press up arrow, then when you press right arrow it rotates by about 10 degrees, then after this if you press up it would go up but a slight bit to the right?)
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: actor rotation

Postby Caaz Games » Fri Apr 18, 2008 8:45 pm

...i think so ask fuzzy he probably knows... oooooo fuzzy!!!
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: actor rotation

Postby makslane » Fri Apr 18, 2008 9:51 pm

Just change the angle and directional_velocity variables.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: actor rotation

Postby Freddy » Sat Apr 19, 2008 12:23 am

To do this, you must have all the animations required. For example, if you had an actor, and you pressed the right arrow key like you said, you would need an animation for the actor to rotate.
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

Re: actor rotation

Postby BloodRedDragon » Fri Apr 25, 2008 5:38 pm

Cheers that works.
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


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron