Does anyone know of a way to make a sprite face the user vertically if the user goes under or over it?
I set all the rotate values of my sprites to 0.0, making them face me in the horizontal direction I am from them. However, I cannot seem to make them face up toward me if I am over them, or down toward me if I am under them. Does anyone know how to make sprites face you vertically instead of just horizontally?
Last edited by Ruben; 07/18/1017:11.
Re: Can sprites face the user vertically?
[Re: Ruben]
#333726 07/18/1017:1107/18/1017:11
@alibaba: you are wrong. If you define the vector with "VECTOR temp;" then the x is not necessary at the vec_set. You need it only if you use a pointer to a entity so the vec_set knows witch vector of the entity you want to set (x, pan, red...)
vec_set expect a VECTOR* and temp is one.
EDIT: of course you can also use temp.x, works too