getting a spear to change the animation frame depending on
Posted: Wed Jan 10, 2007 9:24 pm
direction, could you please Help? here is the code i have an the create actor event
Edit: I changed it to nframes but it still will not work, there are 360 frames in the animation.
- 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.