Page 1 of 1

using angle?

PostPosted: Sat Sep 08, 2007 8:44 pm
by jagheera nex
hey, i downlaoded game editor like 6 months ago and when i did i knew nothig about game making, or scripts, ive learned a lot from the forums and i was wondering how to use the angle variable.

Re: using angle?

PostPosted: Sun Sep 09, 2007 5:47 pm
by Troodon
Angle is the direction of movement.
Quoted from http://www.game-editor.com/tutorials

Code: Select all
angle = direction(xscreen, yscreen, xmouse, ymouse);
directional_velocity = 20;


This makes the actor follow mouse.

Quoting again from the page:
Image
As the coordinates xmouse and ymouse are given related to the screen, we have to use xscreen and yscreen; these are the coordinates of the actor related to the screen.


What would you like to do with the angle variable?

Re: using angle?

PostPosted: Sun Sep 09, 2007 6:22 pm
by jagheera nex
idk i just wanted to know, thanks 4 the code :D