Page 1 of 1

change icon? and direction angle?

PostPosted: Sun Dec 20, 2009 12:23 pm
by amanuob
quick two questions

1.)how do you change the icon in a you've just created do you have to use a software or is it already in GE.

2.)second is the direction of an actor in a specific angle for example is 15 degrees, 30, 45 so on and so forth, what is the code to make this happen, I had this code but I lost it.

thank you in advance.

Re: change icon? and direction angle?

PostPosted: Sun Dec 20, 2009 9:00 pm
by DarkParadox
1).
Trying to change the icon of your game?
Open game-editor -> click Config. -> click Game Properties -> click Icon File -> choose your icon.
when your game is exported/made into an .EXE, it should be the exe's icon.

2).
Each actor has a variable called "angle"
simply
Code: Select all
angle=35;

or another number to set the actors angle.

To check the direction between two actors
Code: Select all
angle=direction(x,y,actor2.x,actor2.y);

Re: change icon? and direction angle?

PostPosted: Mon Dec 21, 2009 1:04 am
by amanuob
wo hoo!
thanx alot! (>,<)!!!
now I can finish my game.

so can I make make my actor go to 30 degree angle now, by changing its angle?
or is it in the x and y coordinates like for ex. x=0, y=1 > my actor goes in a 90 degree angle going up.