Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Starting a fighting game
Quote:Or you could make it the nice one-liner way:
Code:
IF action = 1 THEN action = 0 ELSE action = 1
How bout and even nicer 1 liner? Wink

Code:
action = action XOR 1
In a world without walls and doors, who needs Windows and Gates?
Reply
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.
·····································LINEAR INC·····································
Ø-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
Reply
<<<(yep, it's true, fighting games are the best... that's why they get the largest threads... Big Grin ) >>>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)