GML Help with external animation.

Discussion in 'Programming' started by George Hennen, Jul 11, 2019.

  1. George Hennen

    George Hennen Member

    Joined:
    Dec 11, 2018
    Posts:
    24
    Anyway to animate an external sprite?

    I need to animate this:
    draw_sprite_ext(spr_Sword_Wood, 0,x,y,image_xscale,image_yscale,b_angle,image_blend,image_alpha);

    I am not going to use a separate object.
     
  2. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,530
    I'm really not sure what the question is, but if you mean the sprite has multiple frames but it isn't animating then you need to change the 0 in your function to image_index and make sure that the image_speed is set to a value bigger than 0.

    Using 0 means it will only ever draw frame 0, rather than the frame designated by the current value of image_index.
     
  3. George Hennen

    George Hennen Member

    Joined:
    Dec 11, 2018
    Posts:
    24
    someone else already helped me off-site. thanks for trying though
     
    rIKmAN likes this.
  4. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,530
    No worries, it was a valiant effort!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice