Search found 21 matches

by Super Mario
Sat Jul 26, 2008 5:22 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Need help - Strange tile problem
Replies: 36
Views: 44051

So I have to put DIM tilenumber(30, 15) at the beginning of the program?
by Super Mario
Sat Jul 26, 2008 4:00 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Need help - Strange tile problem
Replies: 36
Views: 44051

Here's what I have in the program loop. DO p$ = INKEY$ oldscoutx = scoutx oldscouty = scouty tilenumber = 1 IF p$ = CHR$(0) + CHR$(75) AND tilenumber(scoutx - 1, scouty) <> 3 THEN IF scoutx > 1 THEN scoutx = scoutx - 1 END IF IF p$ = CHR$(0) + CHR$(77) AND tilenumber(scoutx + 1, scouty) <> 3 THEN IF...
by Super Mario
Sat Jul 26, 2008 1:59 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Need help - Strange tile problem
Replies: 36
Views: 44051

Yeah, I considered that method, but it seemed a bit inefficient. I think a better method would be to check if the new tile will be water, then either move or don't move the scout.
by Super Mario
Sat Jul 26, 2008 12:49 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Need help - Strange tile problem
Replies: 36
Views: 44051

Ralph, I may just change the colors. Now I just want it so the scout can't walk on water. Also, thanks for pointing out the error. I probably just a typo.

Mentat, do you mean storing all the tile data in an external file? That sounds like a good idea. How?
by Super Mario
Fri Jul 25, 2008 9:30 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Need help - Strange tile problem
Replies: 36
Views: 44051

Okay! After messing around with the RESTORE command, I've finally gotten things to work! Now, when you move, you don't drown! DIM grass(10, 10), path(10, 10), water(10, 10), tent(10, 10), scout(10, 10), scoutmask(10, 10) SCREEN 13 scoutx = 5 scouty = 1 FOR y = 1 TO 10 FOR x = 1 TO 10 READ clr IF clr...
by Super Mario
Fri Jul 25, 2008 9:04 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Need help - Strange tile problem
Replies: 36
Views: 44051

Mentat, I got most of my initial help from Vic's "RPG" Tutorial in the Game Design section of the tutorials. In the program, oldscout is where the sprites old values were, while scout is the current ones. I check if they changed with the "IF oldscoutx <> scoutx...". That way, the...
by Super Mario
Fri Jul 25, 2008 4:59 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Need help - Strange tile problem
Replies: 36
Views: 44051

Yeah Ralph, I came to that same conclusion. It's reading the "3" in the last DATA line of the map. That means that instead of reading the entire map DATA, it is just getting the last part. What is the proper way to go back to a desired place?
by Super Mario
Fri Jul 25, 2008 9:49 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Need help - Strange tile problem
Replies: 36
Views: 44051

Need help - Strange tile problem

Hey guys. I can't seem to find the problem with this code. When I run the program, the map is fine. However, when I move, every tile becomes water. Through my own troubleshooting, I suspect it is reading the last piece of data in the map, which is water. Any tips or solutions? DIM grass(10, 10), pat...
by Super Mario
Wed Jul 23, 2008 8:51 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34391

Okay. I think I can take it from here. Thanks for all your help. I really appreciate it. :D
by Super Mario
Tue Jul 22, 2008 6:30 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34391

...What?
by Super Mario
Tue Jul 22, 2008 4:44 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34391

Okay. Here is the program in its entirety. Two problems I have. 1. Why does all of the land change to water when I go to move. I can't seem to find the problem. 2. Is there a way to eliminate the flicker when I move? DIM grass(10, 10), path(10, 10), water(10, 10), tent(10, 10), scout(10, 10), scoutm...
by Super Mario
Tue Jul 22, 2008 11:42 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34391

Wait...what? Sorry, lost ya there.
by Super Mario
Tue Jul 22, 2008 11:36 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34391

So just instead of READ, use RESTORE?
by Super Mario
Tue Jul 22, 2008 11:33 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34391

How can i go back through to the one I want?
by Super Mario
Tue Jul 22, 2008 10:59 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34391

I'm getting an "Out of Data" error. What does this mean? DO p$ = INKEY$ oldscoutx = scoutx oldscouty = scouty PUT (oldscoutx * 10, oldscouty * 10), scoutmask, AND PUT (oldscoutx * 10, oldscouty * 10), scout, OR IF p$ = "w" THEN scouty = oldscouty - 1 IF p$ = "s" THEN sc...
by Super Mario
Tue Jul 22, 2008 10:55 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34391

Is that the best way? Or is there a more proper way?

Once again, thanks a TON for all of your help!
by Super Mario
Tue Jul 22, 2008 10:45 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34391

Here's what I have right now. DO p$ = INKEY$ oldscoutx = scoutx oldscouty = scouty PUT (oldscoutx * 10, oldscouty * 10), scoutmask, AND PUT (oldscoutx * 10, oldscouty * 10), scout, OR IF p$ = "w" THEN scouty = oldscouty - 1 IF p$ = "s" THEN scouty = oldscouty + 1 IF p$ = "a&...
by Super Mario
Tue Jul 22, 2008 10:15 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34391

Okay, I changed it. I now have the map down, with the guy placed afterwards using its own coordinates. Any tips on moving him?
by Super Mario
Tue Jul 22, 2008 9:29 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34391

Okay. I got the mask to work. Looks great! Now, how would I go about adding movement?
by Super Mario
Mon Jul 21, 2008 5:24 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34391

Okay, but do you need to have two sprites like I have in my code? Or do you just have the one sprite with the invisable background? Also, how do you get the " invisable color"?