Search found 18 matches

by ThirtyNitesOfMX
Fri Dec 03, 2010 10:01 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Changing Sprite Arrays
Replies: 3
Views: 8756

def seg after each put command?? thats crazy. how come i can PUT over and over. shouldnt i just need to def seg before i load a different image into it?
by ThirtyNitesOfMX
Fri Dec 03, 2010 1:25 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Changing Sprite Arrays
Replies: 3
Views: 8756

Changing Sprite Arrays

I have my game set up like this: dim shared character sprite arrays then i set Char1Name$ = whoever i want to be the 1st character and it will load their sprites as follows: DEF SEG = VARSEG(Char1Right(0)) BLOAD path$ + "\Characters\" + CHAR1Name$ + "\rightTIL.til", Varprt(Char1R...
by ThirtyNitesOfMX
Fri Dec 03, 2010 1:17 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: QLB - QuickLibrary
Replies: 7
Views: 14971

beware of using _fullscreen. there are 2 different fullscreen settings, one of them works nice when running on a monitor but it doesnt work on a tv.. i have to use the 2nd fullscreen mode for tv.
by ThirtyNitesOfMX
Wed Dec 01, 2010 7:21 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: RPG Battle Mechanics
Replies: 0
Views: 13948

RPG Battle Mechanics

anybody know of a good resource to find RPG battle mechanics equations? like PhysicalDAMAGE = (WeaponStrength + CharacterStrength) / (EnemyDefense * (EnemyLevel/100)) + INT((RND + 1) * (CharacterStrength/10) or MagicDamage = ((CharacterMagic + SpellLevel) * (CharacterLevel/100) / EnemyMagicDefense) ...
by ThirtyNitesOfMX
Wed Dec 01, 2010 12:27 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Keyboard buffer problem
Replies: 7
Views: 15062

thanks.. i figured it out. im a little confused though, why did you say you cant poke and peek with newer pc keyboards and then suggest that i poke and peek? anyways, im assuming the keyboard buffer array is < 300 entries? i think i heard somewhere it was 255 or 155 i just let the first 300 times th...
by ThirtyNitesOfMX
Tue Nov 30, 2010 11:34 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Keyboard buffer problem
Replies: 7
Views: 15062

i did reply in the last thread, i said if you shoot me an email adress ill send the code. i will also have to send all the files its loading for him to run the program though
by ThirtyNitesOfMX
Tue Nov 30, 2010 11:33 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Keyboard buffer problem
Replies: 7
Views: 15062

i was still trying to understand how the first one works.

it didnt seem to help.

i implemented the function, used the if scankey%(x) then, else

used zerocodes% = ScanKey%(0) at the end of each sub before returning to the main loop

did not work. i will try the second thing you posted.
by ThirtyNitesOfMX
Tue Nov 30, 2010 9:46 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Keyboard buffer problem
Replies: 7
Views: 15062

i was just looking at the source code for qb64

shouldnt &h40 be &H60? since 60 = 96 in hex...
by ThirtyNitesOfMX
Tue Nov 30, 2010 8:53 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Keyboard buffer problem
Replies: 7
Views: 15062

Keyboard buffer problem

for my main walking engine, im using INP(96) which seems to work fine other than the anomaly with releasing 2 buttons at once and the CPU missing one of the keyUP inputs. however, ill call a subroutine where i prefer using key$ = inkey$, it makes more sense for battle menus, item menus, etc. the pro...
by ThirtyNitesOfMX
Tue Nov 30, 2010 8:39 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: string/integer/array tipping point
Replies: 15
Views: 20527

let me get an email adress and ill it to you
by ThirtyNitesOfMX
Mon Nov 29, 2010 8:30 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: string/integer/array tipping point
Replies: 15
Views: 20527

ah i see. well im pretty stoked on qb64 either way. doing stuff i could never do before cause of the 'out of memory' issues. qb can technically do 32 bit color with the loadimage (Path$, i): screen i but is there a way to to graphics in realtime, in 32bit, or am i still stuck with what i can put int...
by ThirtyNitesOfMX
Mon Nov 29, 2010 7:25 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: string/integer/array tipping point
Replies: 15
Views: 20527

right. im only using def seg = varseg(variablename(0)) commands if i remember correctly, in the previous versions of qbasic, when you edited code, it kept track of the lines which had been edited, and then checked those for syntax, keeping the wait time before running the program pretty short, even ...
by ThirtyNitesOfMX
Mon Nov 29, 2010 3:14 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: string/integer/array tipping point
Replies: 15
Views: 20527

Ted, are you one of the QB64 developers?
by ThirtyNitesOfMX
Mon Nov 29, 2010 3:11 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: string/integer/array tipping point
Replies: 15
Views: 20527

it does. i said in my earlier post that i had identified it as the problem, i guess i wasnt very clear. my engine runs smoothly when i change those variables. im guessing im not the first one who has used the letters 'def' in a variable in qb64.. especially considering how many people use QB to make...
by ThirtyNitesOfMX
Mon Nov 29, 2010 1:50 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: string/integer/array tipping point
Replies: 15
Views: 20527

i think you're right. i was using lots of variables with DEF in them like... dim shared Char1DEF as integer dim shared Char1MagicDEF as integer dim shared Char2DEF as integer dim shared Char2MagicDEF as integer dim shared Char3DEF as integer dim shared Char3MagicDEF as integer dim shared Char4DEF as...
by ThirtyNitesOfMX
Mon Nov 29, 2010 12:59 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: string/integer/array tipping point
Replies: 15
Views: 20527

i tried it, naturally, and it semmed to fix the problem.. im just hesitant to rewrite my entire battle system
by ThirtyNitesOfMX
Sun Nov 28, 2010 7:23 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: string/integer/array tipping point
Replies: 15
Views: 20527

ps. the problem is that i add 1 more variable and it slows down the program drastiacally. i take it back, and its fine again. i also realize that this is the same thing that happens when you define the same variable twice (at least in qb64) and im positive this is not what is happening, im keeping e...
by ThirtyNitesOfMX
Sun Nov 28, 2010 7:12 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: string/integer/array tipping point
Replies: 15
Views: 20527

string/integer/array tipping point

using qb64, vista 32 bit os is there a tipping point in qb64 where you define one too many integers or strings or arrays? this would be sad because im 2/3 done with writing a badass rpg engine. this is a weird idea, but could it be that i used the letters DEF in my variables which contain Defense in...