You may want to look into
CREATE ANIMATED SPRITE Sprite Number, Filename, Across, Down, Image Number and
PLAY SPRITE Sprite Number, Start Frame, End Frame, Delay Value
Here is an example from DBP's help file.
create animated sprite 1,"manwalking.bmp",1,16,16,1
cls
sprite 1,100,100,1
play sprite 1,0,10,100
print "sprite frame ",sprite frame(1)
do
loop
end
Also, you needn't attach the code as a text file. You can simply put it between [
[/b]code] and [/[b]code]. You can also use [
[/b]code lang=dbp] to add syntax highlighting to your code.
Example:
[[b]code lang=dbp]
`This is a test code
`This is more test code
a = a + 1
print a
sync
end
[/[b][/b]code]
Result:
`This is a test code
`This is more test code
a = a + 1
print a
sync
end
Good luck and welcome to the forums!
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.