Starting a fighting game - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html) +--- Forum: QB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-11.html) +--- Thread: Starting a fighting game (/thread-671.html) |
Starting a fighting game - Piptol - 06-10-2003 Quote:Or you could make it the nice one-liner way:How bout and even nicer 1 liner? Code: action = action XOR 1 Starting a fighting game - Kofman - 06-11-2003 Well I worked on it all night yesterday I solved it with the case command but your ideas are much nicer. I realized why it didn't work. I'm idiot for not seeing it. Anyway I handed it in and the teacher was impressed. I think I'll keep going, make ai and everything. After I got that frame cycling it started to act up on me and was flipping way to fast so I did some ghetto coding. I very simple delay delay = delay + 1 If delay = 20 THEN delay = 0 THEN had something like SELECT CASE delay CASE 0 TO 9 blah blah blah CASE 10 TO 19 blah blah blah END SELECT Next wed is my last final and school's over. I'm going to continue this project and finish it before I move onto C++. I'm not a genious in QB. No not at all. But I did learn it and got the concept in it. I think I'm ready. Anyway I'm going to have to reorganize the code. I think I see what your saying with accelaration wiz. I do need to slow it down dramatically tho. Starting a fighting game - Rokkuman - 06-11-2003 <<<(yep, it's true, fighting games are the best... that's why they get the largest threads... ) >>> |