Statistics: Posted by T'lon Nanaki — Wed May 06, 2009 11:22 am
Code:
DIM fileno as integerPRINT "writing a file."fileno = freefile ' finds the first available free fileOPEN "somefile.txt" for output as fileno ' opens a text file for output or creates one if it doesn't exist PUT #fileno, 1, "Blah Blah" ' writes Blah Blah in the file at position 1 PUT #fileno, 10, "Blah Blah" ' writes Blah Blah in the file at position 10CLOSE fileno SLEEP
Statistics: Posted by Hrothgar — Wed May 06, 2009 3:41 am
Code:
pic.load Char(1).pic(E).frame(1), "\GFX\chareast1.bmp" 'is to load the first frame of a character facing east. 'Char(1).pic(E).frame(1) has to be a string that's different from say Char(1).pic(E).frame(2) 'so I'd have to writeChar(1).pic(E).frame(1) = "firstframefacingeast" 'or something. Different strings for every single frame in every single direction for every single character.
Statistics: Posted by Hrothgar — Wed May 06, 2009 3:16 am
Statistics: Posted by T'lon Nanaki — Thu Apr 30, 2009 11:28 am
Code:
Type character _name as string blahblahetc. as integer animation(10) as (T'lon'sgfxroutine.image)end typedim Char(charno) as characterT'lon'sgfxroutine.load("gfx\animation1.bmp", char(1).animation(1)) 'or whatever the syntax is
Statistics: Posted by Hrothgar — Thu Apr 30, 2009 3:23 am
Statistics: Posted by T'lon Nanaki — Thu Apr 30, 2009 1:20 am
Statistics: Posted by Hrothgar — Wed Apr 29, 2009 1:59 am
Statistics: Posted by T'lon Nanaki — Mon Apr 27, 2009 7:51 pm
Statistics: Posted by T'lon Nanaki — Tue Mar 31, 2009 10:19 pm
Statistics: Posted by Hrothgar — Tue Mar 31, 2009 6:08 am
Statistics: Posted by Ryan — Sun Mar 29, 2009 11:08 pm
Statistics: Posted by Hrothgar — Sun Mar 29, 2009 8:55 am
Code:
Screen 19,32,,1'screenres 800,600,32,,1Line(0,100)-(800,120),RGBA(0,0,255,128),bfline(200,100)-(600,120),rgba(128,0,0,128),bfSleepclsScreen 19,32,,&h41'screenres 800,600,32,,&h41Line(0,100)-(800,120),RGBA(0,0,255,128),bfline(200,100)-(600,120),rgba(128,0,0,128),bfSleep
Statistics: Posted by T'lon Nanaki — Sun Mar 29, 2009 3:25 am