Skip to content

Commit ccdd582

Browse files
committed
don't divide fps by column
1 parent a16c2e9 commit ccdd582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin-programs/sprites.folk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ When the image library is /imageLib/ &\
2525
set spriteHeight [/ $sheetHeight $rows]
2626

2727
When -atomicallyWithKey [list sprite $p $path] the clock time is /t/ {
28-
set frameNumber [expr {round ($t * $fps / $columns) % $frames}]
28+
set frameNumber [expr {round ($t * $fps) % $frames}]
2929
set x [expr {($frameNumber % $columns) * $spriteWidth}]
3030
set y [expr {($frameNumber % $rows) * $spriteHeight}]
3131

0 commit comments

Comments
 (0)