If anyone wants to help, what I have so far is at:
(Open Test.bmx)
http://www45.brinkster.com/QuickSetup/default.htm
(Open Test.bmx)
Let me know of any improvements...
It may also help other beginners to see it. Oh, and I noticed my images skip from 9 to 11, but thats the image not the program. I realize it's very small and simple, but I figured best to improve before it gets too big and too hard to look over.
WHAT IS IT?
It's a 2D Sprite Engine with Basic animation and movement scripting.
(Open Test.bmx)
http://www45.brinkster.com/QuickSetup/default.htm
(Open Test.bmx)
Import "SAM.bmx" ' SAM inlcudes bobs and images and SAM ' set some local vars for use Local RVal:Int=0 Local A:Int=0 ' setup the graphics Graphics 800,600,,0 | HARDSYNC HideMouse ' Load images RVal=IMGs_Add("3232.png",32,32) ' create 10 sprites that just bounce around For A=1 To 10 ' #ToAdd,X,Y,ImgNum,SX,SY RVal=BOB_Add(1,32*A,32*A,A,.5,.5) BOB[A-1].WrapBehaviour=1 Next ' now Create a sprite that moves in a square using SAM RVal=BOB_Add(1,100,100,20,0,0) SAM_add() ' This is SAM (Simple Anim & Movement) ' L=Label M=Move X,Y,SX,SY J=Jump to Label SAM_calc("L 1:M 150,0,.5,0:M 0,150,0,.5:M 150,0,-.5,0:M 0,150,0,-.5:J 1",0,RVAL) ' loop Repeat Cls SAM_Update() BOB_Update() BOB_Draw() Flip Until KeyHit (KEY_ESCAPE) SAM[0].Bank=Null
Let me know of any improvements...
It may also help other beginners to see it. Oh, and I noticed my images skip from 9 to 11, but thats the image not the program. I realize it's very small and simple, but I figured best to improve before it gets too big and too hard to look over.
WHAT IS IT?
It's a 2D Sprite Engine with Basic animation and movement scripting.