- Code: Select all
angle = direction(xscreen, yscreen, Coca.xscreen, Coca.xscreen);
directional_velocity = 25;
- Code: Select all
animindex = direction(xscreen, yscreen, Coca.xscreen, Coca.xscreen)*360;
Edit: I changed it to nframes but it still will not work, there are 360 frames in the animation.