Posts: 354
Threads: 11
Joined: May 2002
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?
Code:
action = action XOR 1
In a world without walls and doors, who needs Windows and Gates?
Posts: 131
Threads: 10
Joined: Oct 2002
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
Posts: 1,556
Threads: 298
Joined: Dec 2002
<<<(yep, it's true, fighting games are the best... that's why they get the largest threads...
) >>>