ok so i need some ideas for the darkbasic replacement commands
so far:
load_object("test.dbo",1,1,1)
`file name , object number, use memblock, use image number
load_animation("testanimation.xra",1)
`file name , animation number
loop_object(1,1,0,15,75)
` object number,animation number, start frame, end frame, millisecond speed
play_object(1,1,0,15,75)
` object number,animation number, start frame, end frame, millisecond speed
update_animation(1,timer())
` object number, system timer
thats it so far...
i will also have some commands to return if the animation is playing and what frame its on.
as far as textures changing during playback....im leaving this open for manual coding as well as color change on playback.
Questions? Any ideas to get this even better?
a sample code would look like this:
Rem Project: Dark Basic Pro Project
Rem Created: Monday, August 29, 2011
Rem ***** Main Source File *****
global dim animsequence(100,20,255)
global dim objects_playing(100,6)
global dim objects_textures(100,20)
sync on
sync rate 60
load_object("test.dbo",1,1,1)
load_animation("testanimation.xra",1)
loop_object(1,1,0,15,75)
do
`move object 1,5
yrotate object 1,wrapvalue(object angle y(1)+.1)
update_animation(1,timer())
sync
loop
Enhanced animations plugin no longer required!!