Page 1 of 1

Angle

PostPosted: Mon Jan 02, 2012 10:52 am
by peedalein
Hello everybody!

I hope you had a good start in the new year :)

How do I change the angle of my actor (I would like to rotate the actor)?

In Draw Actor I put ("133" is just a random number).

Code: Select all
angle = 133;

or
Code: Select all
actor.angle = 133;


However, my actor does not change the angle/rotate. Anything else that I need to consider?

Regards,
Peter

Re: Angle

PostPosted: Mon Jan 02, 2012 11:09 am
by master0500
in the current version of gE you are unable to rotate an actor though in the next version you will
Angle decides the direction that the actor travels in and for that to work, you need to include the Directional-velocity
Code: Select all
actor.angle=0;
directionalVelocity=7;

Re: Angle

PostPosted: Mon Jan 02, 2012 1:11 pm
by peedalein
Ok, will have to wait for the next version then. Thanks for the answer :)

Re: Angle

PostPosted: Mon Jan 02, 2012 4:18 pm
by lcl
master0500 wrote:in the current version of gE you are unable to rotate an actor though in the next version you will
Angle decides the direction that the actor travels in and for that to work, you need to include the Directional-velocity
Code: Select all
actor.angle=0;
directionalVelocity=7;

Well, to be exact, master0500, it's directional_velocity, so the code would have to be this:
Code: Select all
actor.angle = 133;
actor.directional_velocity = 7;

That's for changing the angle and velocity of actor called 'actor'.
For changing the current actors angle and velocity, one can leave the actor name part, and just write:
Code: Select all
angle = 133;
directional_velocity = 7;


That was just for avoiding confusion. :)

Re: Angle

PostPosted: Mon Jan 02, 2012 10:19 pm
by master0500
lcl wrote:
master0500 wrote:in the current version of gE you are unable to rotate an actor though in the next version you will
Angle decides the direction that the actor travels in and for that to work, you need to include the Directional-velocity
Code: Select all
actor.angle=0;
directionalVelocity=7;

Well, to be exact, master0500, it's directional_velocity, so the code would have to be this:
Code: Select all
actor.angle = 133;
actor.directional_velocity = 7;

That's for changing the angle and velocity of actor called 'actor'.
For changing the current actors angle and velocity, one can leave the actor name part, and just write:
Code: Select all
angle = 133;
directional_velocity = 7;


That was just for avoiding confusion. :)

oh.. sorry bout that