Hello Guest

Author Topic: How to Animate Sprite with Script?  (Read 8000 times)

GrimmBro

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
How to Animate Sprite with Script?
« on: February 14, 2012, 11:27:24 pm »
Hello Forum,

After following the example in the manual the sprite would not animate when script was used. The sprite would animate fine when the editor was used to start it automatically. How do you get a sprite to animate with script say just to loop through an idle state when the game starts?

Any help would be appreciated.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: How to Animate Sprite with Script?
« Reply #1 on: February 15, 2012, 12:11:13 am »
I can take a look at this for you - send a zipped project folder by email to support at unikronsoftware dot com.

GrimmBro

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: How to Animate Sprite with Script?
« Reply #2 on: February 15, 2012, 01:08:21 am »
Hi Unikron,

Managed to solve the problem; went through the tutorial again and realised the anchor had not been set to to the lower left. Not entirely sure what this did though.

Cheers.