Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
Animation isn't playing after I specify which frames to play

I've started trying to make a game with kaboom.js and have come across a problem where the animation for an arrow which flashes isn't playing, it just freeze frames at the first frame. Does anybody know what I'm doing wrong?

The Code

const k = kaboom({
width: 320,
height: 240,
scale: 2,
});

k.loadSprite("selArrow", "sprites/selArrow.png", {
  sliceX: 2,
  sliceY: 2,
  anims: {
    main: { 
      from: 0, 
      to: 3,
      speed: 2,
      loop: true}
}});
const selArrow = k.add([
  k.sprite("selArrow", {anim: "main"}),
  k.pos(50),
  k.scale(1.5),
  k.origin("center"),
]);

The Spritesheet

The Spritesheet

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!