It's been a while since I've posted but I'm still working on my same project that I started 3 years ago
I've been stuck with default animations and I was tired of being limited, since I'm making an FPS, so I whipped out Enhanced animations that I bought some time ago. Everything is fine but this one quirky problem:
(Note: In all of these snippets, text ... prints out 17 just fine)
This works:
EnAn_oacUpdate plr(p).obj.id_oac, 17
Text 100,100,str$(17)
This DOESN'T work:
//tbmf_diff is the difference in time between frames
EnAn_oacUpdate plr(p).obj.id_oac, int(tbmf_diff)
Text 100,100,str$(int(tbmf_diff)) //Prints out 17 because of 60 fps
This works:
tm AS INTEGER
tm = 17
EnAn_oacUpdate plr(p).obj.id_oac, tm
Text 100,100,str$(tm)
This DOESN'T work:
tm AS INTEGER
tm = tbmf_diff
EnAn_oacUpdate plr(p).obj.id_oac, tm
Text 100,100,str$(tm)
Is this a glitch in DarkBasic's casting system? If so, is there any way to get my time between frames in there and not using a constant?
Ventures of the worlds around us are limited only by our imagination.