need a little bit of help [DDR]
Author |
Message |
omni
|
Posted: Wed Apr 07, 2004 4:15 pm Post subject: (No subject) |
|
|
I think what tony means is to get rid of TURING GUIS. Make your own from scratch. Draw your own boxes, then do a loop with mousewhere in it.
proc drawOWNmenu
drawboxes..
..
end drawOWNmenu
loop
mousewhere
(if user clicked on the box area, then do whatever that button was supposed to)
end loop
A good rule is don't use someones routine if you can't understand it yourself.
In other words, dont use TURING GUIS.
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Dan
|
Posted: Wed Apr 07, 2004 6:40 pm Post subject: (No subject) |
|
|
i dont know how good a rule that is...
i mean if u falow that stricly, i dont think most poleop could uses put or get. u know that it puts stuff on the screen but no one knows exctaly how b/c we can not see the code for it.
|
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
Tony
|
Posted: Wed Apr 07, 2004 6:56 pm Post subject: (No subject) |
|
|
nightcrawler - reason that Turing GUI will screw you over is because it is badly writen and it hoggs the processing power (that never ending ProcessEvent loop).
Does shannon use MSN? or just tell her to actually read compsci once in a while - it might help her with teaching
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
nightcrawler938
|
Posted: Wed Apr 07, 2004 7:54 pm Post subject: (No subject) |
|
|
yeah, shannon doesn't know all the answers, but still is a great teacher, well today i discovered that removing GUI speeds up my arrow movement, Turing pusts this natural delay of (3), err, well now i need to determine wether or not to use hasch or input key down
heres my new improved code!
Description: |
|
Download |
Filename: |
DDR4.T |
Filesize: |
11.42 KB |
Downloaded: |
115 Time(s) |
|
|
|
|
|
|
Tony
|
Posted: Wed Apr 07, 2004 8:03 pm Post subject: (No subject) |
|
|
defenatly Input.KeyDown if you want to have two players and/or have two arrows pressed down at same time
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
nightcrawler938
|
Posted: Thu Apr 08, 2004 7:24 am Post subject: (No subject) |
|
|
acutally, i started using GUI.SetEventKeyHandler,it works well, but a few bugs
|
|
|
|
|
|
equs
|
Posted: Thu Apr 08, 2004 8:41 pm Post subject: (No subject) |
|
|
Shannon is a great teacher. I am in michelas class and his code is great and his program is good, just its to compliated.Well to complicated for me. IM having trouble making a grid in snake and collision detection. I wonder if Tony could help me? lol. Tony were you in Shannons class?
|
|
|
|
|
|
Tony
|
|
|
|
|
Sponsor Sponsor
|
|
|
nightcrawler938
|
Posted: Fri Apr 09, 2004 3:00 pm Post subject: (No subject) |
|
|
tony, input.keydown doesn't work so well, should i put it in my game procedure or call it separatly
|
|
|
|
|
|
Tony
|
Posted: Fri Apr 09, 2004 3:04 pm Post subject: (No subject) |
|
|
huh what do you mean?
Idealy you would call it right before you check user's input.
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
nightcrawler938
|
Posted: Sat Apr 10, 2004 1:29 pm Post subject: (No subject) |
|
|
i mean that, the computer can only recieve input before the music plays and the arrows move, so i've tried decrlaing it as a procedure, then calling it the game procedure, i've kinda tried to put the input in the game procedure but it doesn't work
|
|
|
|
|
|
white_dragon
|
Posted: Sat Apr 10, 2004 1:31 pm Post subject: (No subject) |
|
|
try foolin round with forkin the process and procedures. tat might help a little.
|
|
|
|
|
|
Tony
|
|
|
|
|
nightcrawler938
|
Posted: Sat Apr 10, 2004 4:48 pm Post subject: (No subject) |
|
|
makes sense, however i assume that process input is the input recieved from the user
|
|
|
|
|
|
nightcrawler938
|
Posted: Fri Apr 16, 2004 8:23 am Post subject: (No subject) |
|
|
tony, i think i solved, my porblem, just wanted verification, since my arrows are picture files, could that be the reason why, i recieve input before arrows showup , because i have started to draw my own arrows
|
|
|
|
|
|
|
|