Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

quick zazz-related question: is there any way to add a speed modifier for zazz.scroll the way you can for zazz.wave? any attempt to place a number after "0,-1" produces no effect

on view do
 zazz.scroll[canvas3 0,-1]
 go[card]
end
(+2)

All the parameters of every zazz function are documented. zazz.scroll[] only takes two parameters: a target and a scroll direction.

It is not possible to scroll less than one pixel per frame, but we could use a lower "duty cycle" by scrolling only every N-th frame. The "sys.frame" field automatically increments 60 times per second, so we could for example call zazz.scroll[] only when sys.frame modulo 4 equals zero to scroll every fourth frame, or at 15FPS:


on view do
 if !2%sys.frame zazz.scroll[A 1,0] end
 if !3%sys.frame zazz.scroll[B 1,0] end
 if !4%sys.frame zazz.scroll[C 1,0] end
 if !5%sys.frame zazz.scroll[C 0,1] end
 go[card] 
end