how do i get the current Frame in anim8
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
how do i get the current Frame in anim8
so i am trying to get the current frame that is being drawn, but i don't know how to do that, i tried alot of things but nothing really works, getFrameInfo is just giving me error after error,plz help
-
- Party member
- Posts: 563
- Joined: Wed Oct 05, 2016 11:53 am
Re: how do i get the current Frame in anim8
Code: Select all
local frame = animation:getFrameInfo() -- returns the frame quad, not the frame number
-- or
local frame = animation.position -- returns the frame number
If you wish to draw the quad after calling getFrameInfo, you could do the following
Code: Select all
love.graphics.draw(your_animation_texture, frame, x_position, y_position )
Re: how do i get the current Frame in anim8
thanks!,it worked
Who is online
Users browsing this forum: No registered users and 5 guests