Posts: 23
Threads: 12
Joined: Jul 2003
Does anyone know how to create a sub in qbasic that will run frames (graphics) by puting values like speed, the graphic frames, etc.
or how to create each separate framed graphic - like proffesional frame engine? or something like that.
Posts: 3,368
Threads: 195
Joined: Jan 2003
That's "Professional".
Here :
Code:
DIM SHARED image.amount%, frame.amount%
image.amount%=1
frame.amount%=1
animation.amount% = 1
DIM SHARED image.handle&(1 TO image.amount%) AS LONG 'image handle. Holds the image.
DIM SHARED image.pointer%(1 TO frame.amount%) 'points to image.handle&
DIM SHARED image.speed%(1 TO frame.amount%)
DIM SHARED image.start%(1 TO animation.amount%) 'start point on image.pointer% and image.speed%..
DIM SHARED image.end%(1 TO animation.amount%) 'end point on image.pointer% and image.speed%..
Er, a sub would just use some animation% as a parameter.. dependent on library used and program structure...
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Posts: 23
Threads: 12
Joined: Jul 2003
I still don't understand this well... when I am talking about frames I actually speak about platform games... where you can put objects as many as you like and they will be framed in separate times
Posts: 6,419
Threads: 74
Joined: Mar 2002
This is not like in game makers, you have to manage objects yourself. Use an array of structures to hold data, then in each loop move every object using a for loop. Use another one to draw them.