Search found 25 matches

by Hrothgar
Wed May 06, 2009 3:41 am
Forum: Freebasic Questions & Answers
Topic: Turn Based Games
Replies: 19
Views: 77291

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 Bl...
by Hrothgar
Wed May 06, 2009 3:16 am
Forum: Freebasic Questions & Answers
Topic: Turn Based Games
Replies: 19
Views: 77291

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...
by Hrothgar
Thu Apr 30, 2009 3:23 am
Forum: Freebasic Questions & Answers
Topic: Turn Based Games
Replies: 19
Views: 77291

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....
by Hrothgar
Wed Apr 29, 2009 1:59 am
Forum: Freebasic Questions & Answers
Topic: Turn Based Games
Replies: 19
Views: 77291

Sure, sounds good. Whenever it's done go ahead and send it to hrothcode at gmail dot com and i'll check it out.

how does it work? I guess it's an oop thing? Does it only load bitmaps or could it do other file formats as well?
by Hrothgar
Sun Apr 26, 2009 4:10 am
Forum: Freebasic Questions & Answers
Topic: Turn Based Games
Replies: 19
Views: 77291

Yeah at the moment it's just bitmaps bloaded into fb.image ptrs and PUT onto the screen. If theres a more effective way of doing things that I don't know about I'd be interested to learn.
by Hrothgar
Tue Mar 31, 2009 6:08 am
Forum: Freebasic Questions & Answers
Topic: Turn Based Games
Replies: 19
Views: 77291

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...
by Hrothgar
Sun Mar 29, 2009 8:55 am
Forum: Freebasic Questions & Answers
Topic: Turn Based Games
Replies: 19
Views: 77291

now it only took me a couple of seconds to guess why you can't get your green health bar transparent

Thank you VERY much, that worked perfectly. I'll keep you posted on my progress.
by Hrothgar
Sat Mar 28, 2009 7:18 am
Forum: Freebasic Questions & Answers
Topic: Turn Based Games
Replies: 19
Views: 77291

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 ...
by Hrothgar
Sun Jan 25, 2009 12:48 am
Forum: Freebasic Questions & Answers
Topic: Turn Based Games
Replies: 19
Views: 77291

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...
by Hrothgar
Sat Jan 24, 2009 10:05 am
Forum: Freebasic Questions & Answers
Topic: Turn Based Games
Replies: 19
Views: 77291

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...
by Hrothgar
Sun Dec 23, 2007 10:52 am
Forum: General Discussion
Topic: windows cursor control
Replies: 4
Views: 12975

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...
by Hrothgar
Tue Nov 27, 2007 10:14 am
Forum: General Discussion
Topic: windows cursor control
Replies: 4
Views: 12975

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...
by Hrothgar
Thu Jul 26, 2007 8:13 am
Forum: QBASIC and QB64 Questions & Answers
Topic: freebasic audio library
Replies: 1
Views: 4996

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...
by Hrothgar
Thu Sep 28, 2006 4:09 am
Forum: QBASIC and QB64 Questions & Answers
Topic: what's the point?
Replies: 5
Views: 13412

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 wh...
by Hrothgar
Wed Sep 27, 2006 4:38 am
Forum: QBASIC and QB64 Questions & Answers
Topic: what's the point?
Replies: 5
Views: 13412

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 thi...
by Hrothgar
Wed Sep 27, 2006 2:09 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Networking?
Replies: 1
Views: 6322

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)
by Hrothgar
Mon Feb 20, 2006 7:19 am
Forum: QBASIC and QB64 Questions & Answers
Topic: feelin' sleepy
Replies: 2
Views: 5968

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...
by Hrothgar
Mon Jan 16, 2006 10:02 am
Forum: QBASIC and QB64 Questions & Answers
Topic: keyboard pushy thingy?
Replies: 7
Views: 12855

Multikey works perfectly, thanks z!re before you mentioned it I didn't know it existed. long live the power of freebasic.
by Hrothgar
Mon Jan 16, 2006 3:33 am
Forum: QBASIC and QB64 Questions & Answers
Topic: keyboard pushy thingy?
Replies: 7
Views: 12855

^^ that was me

I just noticed that it happens for everything to do with the keyboard. even in this forum. if you hold down a letter it types one of them, waits half a second then continues. How do I remove that delay from my programs?
by Hrothgar
Mon Jan 16, 2006 1:52 am
Forum: General Discussion
Topic: Programmers
Replies: 17
Views: 33178

It's purely a hobby. Maybe someday if I'm better at it and have no other work. But for now I don't want to ruin my fun by making it work.