Maze
Author |
Message |
Tallguy
|
|
|
|
|
Sponsor Sponsor
|
|
|
isaiahk9
|
Posted: Tue May 06, 2008 5:57 pm Post subject: Re: Maze |
|
|
Did you try using :
loop
include "level2.t"
if Veiw.WhatDotColor (cursorx, cursory) = blue then
level2
else
. . . code for the mouse and the maze . . .
end if
end loop
Level2.t is a procedure name I made up for your second level. Cursorx and cursory and the coordinates for your cursor. This example would make it so that if the cursor is even hovering over blue then it goes to next level. you could just add in the clicking code.
Hope that helps after you've helped me.
|
|
|
|
|
|
Zampano
|
Posted: Tue May 06, 2008 6:23 pm Post subject: Re: Maze |
|
|
Tallguy, what's up with having a separate procedure for each level? If you just used the code from level1 for level2, it could easily run, you'd just need to load a different file. This can be done with some simple string manipulation. Besides that, why do you think you should change the colour based on the inner for loop. This means that the clr variable is modified even when it does need to be, leading to layers of redundancy.
|
|
|
|
|
|
Tallguy
|
Posted: Thu May 08, 2008 11:05 am Post subject: RE:Maze |
|
|
i'm using procs, so i can load the new map, and the cursor gets smaller after every lvl..but i c wat u mean
YAY THANKS isaiahk9
it works +10 bits (4 a ty)
|
|
|
|
|
|
Jessica359
|
Posted: Thu May 08, 2008 12:03 pm Post subject: RE:Maze |
|
|
Ask Harisson when he comes back m ayby he can help you.
|
|
|
|
|
|
Insectoid
|
Posted: Thu May 08, 2008 5:16 pm Post subject: RE:Maze |
|
|
You have to do a MAZE for your gr. 11 final? I'm doing pacman in Gr. 10, for fun! And I may use it as my final as well...
|
|
|
|
|
|
Tallguy
|
Posted: Fri May 09, 2008 7:58 am Post subject: RE:Maze |
|
|
no i don't have to do, i just felt like it-its easy
|
|
|
|
|
|
|
|