Search found 25 matches
- Wed May 06, 2009 3:41 am
- Forum: Freebasic Questions & Answers
- Topic: Turn Based Games
- Replies: 19
- Views: 40508
the put # thing. DIM fileno as integer PRINT "writing a file." fileno = freefile ' finds the first available free file OPEN "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 P...
- Wed May 06, 2009 3:16 am
- Forum: Freebasic Questions & Answers
- Topic: Turn Based Games
- Replies: 19
- Views: 40508
Thanks for the gfx routine, It's awesome. I really like the cropping feature and being able to just call the destructor to kill all the graphics instead of having to imagedestroy each individual one. only thing is that because you use a string as an identifier I'm having to write lots of strings. eg...
- Thu Apr 30, 2009 3:23 am
- Forum: Freebasic Questions & Answers
- Topic: Turn Based Games
- Replies: 19
- Views: 40508
Sounds good. I'd still be able to use it within other types right? eg. if the bitmap for the first frame of a 10 frame character animation was stored in Char(character).animation(1) would I do something like. Type character _name as string blahblahetc. as integer animation(10) as (T'lon'sgfxroutine....
- Wed Apr 29, 2009 1:59 am
- Forum: Freebasic Questions & Answers
- Topic: Turn Based Games
- Replies: 19
- Views: 40508
- Sun Apr 26, 2009 4:10 am
- Forum: Freebasic Questions & Answers
- Topic: Turn Based Games
- Replies: 19
- Views: 40508
- Tue Mar 31, 2009 6:08 am
- Forum: Freebasic Questions & Answers
- Topic: Turn Based Games
- Replies: 19
- Views: 40508
Actually the name comes from Beowulf and norse mythology. Hrothgar was a scandanavian king who's people were under attack by the monster Grendel. Beowulf showed up, killed the monster and saved the day. That book series looks pretty cool though, I'll have to read it some time. I'm having a little tr...
- Sun Mar 29, 2009 8:55 am
- Forum: Freebasic Questions & Answers
- Topic: Turn Based Games
- Replies: 19
- Views: 40508
- Sat Mar 28, 2009 7:18 am
- Forum: Freebasic Questions & Answers
- Topic: Turn Based Games
- Replies: 19
- Views: 40508
Yeah that's the sort of thing, It's like an amaturish final fantasy tactics with sprites and an inventory system, magic, items, stats and stuff. My goal is 10 linear levels with scripted events and ai, broken up by a sort of visual novel kind of story system where you can change your equiptment and ...
- Sun Jan 25, 2009 12:48 am
- Forum: Freebasic Questions & Answers
- Topic: Turn Based Games
- Replies: 19
- Views: 40508
Thanks T'lon Yes I am using a for loop to go through the characters and the speed variable is an integer. I was thinking of doing something like that with a nested for loop. It works quite well. The bit that troubles me is what happens when two characters have equal speed? I could have it randomly c...
- Sat Jan 24, 2009 10:05 am
- Forum: Freebasic Questions & Answers
- Topic: Turn Based Games
- Replies: 19
- Views: 40508
Turn Based Games
Just for fun I'm working on a turn based tactical rpg sort of thing in Freebasic. I'm having trouble coming up with a good way to determine which character gets the next turn. At the moment it just cycles through the characters one by one but ideally I'd like to have it based on each character's spe...
- Sun Dec 23, 2007 10:52 am
- Forum: General Discussion
- Topic: windows cursor control
- Replies: 4
- Views: 8566
VB looks promising but I'm a bit newbish in it and while it's pretty simple to get data from the mouse it seems a lot harder to get the mouse to follow the data. my grand scheme, although it's probably above my current abilities, is to write a program that allows remote mouse control over an etherne...
- Tue Nov 27, 2007 10:14 am
- Forum: General Discussion
- Topic: windows cursor control
- Replies: 4
- Views: 8566
windows cursor control
I'm looking for a good way to get control over the mouse cursor in windows xp. Ideally a way to read cursor locations and button information from a file. Something similar to the SETMOUSE command in fb. Maybe something like a mouse macro? Or would I need to use some kind of driver for a virtual mous...
- Thu Jul 26, 2007 8:13 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: freebasic audio library
- Replies: 1
- Views: 3560
freebasic audio library
I'm trying to get some sound for a little amature game I'm working on but when I try to use the fmod library that comes with freebasic it screws up completely. When I try to '$include: 'fmod.bi' and compile it throws a bunch of errors at me leading with: "A required .DLL file, FMOD.DLL, was not foun...
- Thu Sep 28, 2006 4:09 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: what's the point?
- Replies: 5
- Views: 8679
The windows calculator is as good a converter as any and I've tried both using RGB() and &h. It returns a value close to the colour but not the colour itself. The picture that is being POINTed is a grey colour RGB(128,128,128) or &h808080 POINT returns 8684164 which is &h848284 in hex which is RGB(1...
- Wed Sep 27, 2006 4:38 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: what's the point?
- Replies: 5
- Views: 8679
what's the point?
I'm having some trouble with the POINT command in FB. I'm using it to check the rgb colour values of the background against something else but for some reason it only works with rgb values of 0 or 255. eg. this works fine dotcolour = point(x,y) if dotcolour = &hFF00FF then blah blah blah but this do...
- Wed Sep 27, 2006 2:09 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Networking?
- Replies: 1
- Views: 4425
Networking?
I'm making a little freebasic multiplayer space combat game in my spare time and I was wandering if anyone knew of any good IPX network tutorials or had any suggestions of how to program the game in freebasic to play over a network (not using a modem)
- Mon Feb 20, 2006 7:19 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: feelin' sleepy
- Replies: 2
- Views: 4162
feelin' sleepy
Is there a way to get my program to wait for a certain amount of time that doesn't have the problem SLEEP does whereby if you push any key it skips the wait? I thought about using TIMER but I was wandering if there were any other alternatives? Edit: forget it I didn't realise there were any other pa...
- Mon Jan 16, 2006 10:02 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: keyboard pushy thingy?
- Replies: 7
- Views: 8848
- Mon Jan 16, 2006 3:33 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: keyboard pushy thingy?
- Replies: 7
- Views: 8848
- Mon Jan 16, 2006 1:52 am
- Forum: General Discussion
- Topic: Programmers
- Replies: 17
- Views: 21153