Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SUB FrameCreator
#1
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.
Reply
#2
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.
Reply
#3
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
Reply
#4
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.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)