How can i determine distance and angle in the layout or how can i know it
Hi,
Distance and angle between what?l
You can use system expression angle(sprite1.x,sprite1.y,sprite2.x,sprite2.y) and dist(sprite1.x,sprite1.y,sprite2.x,sprite2.y)
For example when i set 270 degrees how can i determine this position in the layout
270 degrees on what?
0 degrees is generally facing right.
270 should make the object face up.
0 = right
180 = left
90 = down
270 = up
Develop games in your browser. Powerful, performant & highly capable.
and (-100,-100) what does it mean ?
in that context it mean nothing. if you mean what angle it means nothing because it not valid as it's not complete
bive us more information please. What type of help do you wish? Do you want player movement in degree or what? explain please abdalghani
I am confused from some capxes . . and I wanna gathering information about degrees and distances to make sprite move to right position
take this for example : creat object (sprite) on layer (main) at (1500,random(1024) . . how can I determine this position exactly in layer ?
abdalghani try this demo
Ok