change icon? and direction angle?

Non-platform specific questions.

change icon? and direction angle?

Postby amanuob » Sun Dec 20, 2009 12:23 pm

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.
Questions are necessary for the development of our own knowing, without questions How would we know??? and lesser would be my posts or none...therefore I know little or none.
User avatar
amanuob
 
Posts: 33
Joined: Sat Aug 29, 2009 11:47 am
Location: In Earth
Score: 1 Give a positive score

Re: change icon? and direction angle?

Postby DarkParadox » Sun Dec 20, 2009 9:00 pm

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);
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Re: change icon? and direction angle?

Postby amanuob » Mon Dec 21, 2009 1:04 am

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.
Questions are necessary for the development of our own knowing, without questions How would we know??? and lesser would be my posts or none...therefore I know little or none.
User avatar
amanuob
 
Posts: 33
Joined: Sat Aug 29, 2009 11:47 am
Location: In Earth
Score: 1 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron