animation issues

G

graviax

Guest
I tried to understand but...
screen 1.png


I don't understand how that's possible
nothing should be freezing my image_speed to 0
the program itself read the instruction to give image_speed -0.1.
help me please before i kill myself.
 

johnwo

Member
Must be a problem with your code.

Did a test:

Works fine for me.

Please post your code.

Cheers!
 
G

graviax

Guest
thanks for the replies and sorry for the waiting


screen 2.png

here's my code concerning the image_speed and image_index in general

EDIT: sorry I forgot to add the ang code :
ang = point_direction(x,y,mouse_x,mouse_y);
 
Last edited by a moderator:

johnwo

Member
How about making the
Code:
if (!hsp && !vsp)
into
Code:
if (!abs(hsp) && abs(vsp))
as x <= 0 evaluates to false?

Let me know how that works out! :)

Cheers!
 
G

graviax

Guest
Thanks so much!
As you would probably guess it worked out just fine.
 
Top