11-16-2024, 05:04 AM
Instead of using if...then...else....
Could it be used min() function for the animation above ? I still can't figure out where to code santa.cell = 0 ...
endif
Code:
'Cell Animation
draw image santa.run,santa.move,santa.jump,santa.cell
if santa.cell<11 then
santa.cell = santa.cell + dt*20
else
santa.cell = 0
endif
Could it be used min() function for the animation above ? I still can't figure out where to code santa.cell = 0 ...
Code:
'Cell Animation
draw image santa.run,santa.move,santa.jump,santa.cell
santa.cell = min(santa.cell+dt*20,11)
endif