Maze Game
Author |
Message |
godofquestions
|
Posted: Wed May 30, 2007 6:47 pm Post subject: Maze Game |
|
|
Hi I'm making a maze game for my isu and there are a lot of lines
so far I have been using Math.DistancePointLine for the collision so that the player cannot go through the walls, but its not that great and it takes long.
Is there any better way for collision?
Oh and how can I put in the Time for the game, like when the game starts to when it finishes
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
DIIST
|
Posted: Wed May 30, 2007 7:25 pm Post subject: Re: Maze Game |
|
|
Try creating a tilemap. From the tile map let the 1 represent the wall let the zero represent walkable space. When moving the game piece, see if the location is a one or a zero. If its a zero you can move in that space, if it is a one that you cant move into it.
As for the time look into Time.Elapsed. |
|
|
|
|
|
ashiphire
|
Posted: Thu May 31, 2007 4:38 pm Post subject: RE:Maze Game |
|
|
well in my maze game i use whatdotcolor to check if the square in front is white or not and if it is white it can move there |
|
|
|
|
|
|
|