[Anim8] I'm having issues getting my coins to spin

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
MaxGamz
Party member
Posts: 104
Joined: Fri Oct 28, 2022 3:09 am

[Anim8] I'm having issues getting my coins to spin

Post by MaxGamz »

I created a coin spawner, I'm trying to tinker around a little bit but it can only load a frame of my animation. When I select the entire animation (x frames "1-6") the game is unable to load, but the spawner works perfectly. How can I fix this issue?

main.lua: line 26
HelpPlz.love
(883.87 KiB) Downloaded 86 times
User avatar
togFox
Party member
Posts: 801
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: [Anim8] I'm having issues getting my coins to spin

Post by togFox »

I didn't look too closely but the console gives a clue:

> There is no frame for x=2, y=1

I'm guessing you've declared your frames wrong. Check you haven't swapped row/col by mistake and got your frame sizes right.
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Turn-based PBEM horse stable (racing) management sim: https://togfox.itch.io/horse-stable-manager
https://discord.gg/HeHgwE5nsZ
MaxGamz
Party member
Posts: 104
Joined: Fri Oct 28, 2022 3:09 am

Re: [Anim8] I'm having issues getting my coins to spin

Post by MaxGamz »

togFox wrote: Sun Oct 01, 2023 5:43 am I didn't look too closely but the console gives a clue:

> There is no frame for x=2, y=1

I'm guessing you've declared your frames wrong. Check you haven't swapped row/col by mistake and got your frame sizes right.
Oh wait I found my issue, apparently I just used the pixel width and height of the image instead of "getting" them. I'm not sure how it is much different but I'm atleast glad it's fixed now!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 3 guests