Angle

Game Editor comments and discussion.

Angle

Postby peedalein » Mon Jan 02, 2012 10:52 am

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
Last edited by peedalein on Mon Jan 02, 2012 1:10 pm, edited 1 time in total.
peedalein
 
Posts: 54
Joined: Mon May 17, 2010 2:26 pm
Score: 1 Give a positive score

Re: Angle

Postby master0500 » Mon Jan 02, 2012 11:09 am

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;
master0500
 
Posts: 409
Joined: Sun Jun 26, 2011 9:42 pm
Score: 27 Give a positive score

Re: Angle

Postby peedalein » Mon Jan 02, 2012 1:11 pm

Ok, will have to wait for the next version then. Thanks for the answer :)
peedalein
 
Posts: 54
Joined: Mon May 17, 2010 2:26 pm
Score: 1 Give a positive score

Re: Angle

Postby lcl » Mon Jan 02, 2012 4:18 pm

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. :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Angle

Postby master0500 » Mon Jan 02, 2012 10:19 pm

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
master0500
 
Posts: 409
Joined: Sun Jun 26, 2011 9:42 pm
Score: 27 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest