Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i'm also making a basic maze game

Status
Not open for further replies.

fugigoose

Programmer
Jun 20, 2001
241
US
I'm making a maze game. The character you "control" is one sprite set to matte ink. The maze consisiting of several walls is one sprite set to matte ink. I'm doing colision detection using the INTERSECT function. It doesnt work! You cant move cuz your intersecting the empty part of the sprite (between the walls). Is there any way to make all white space in a sprite NOT return intersect true, or maybe another way to acomplish this? I really dont want to make each individual wall a seperate sprite! Thanx!
 
Well, if you are using Director 8 or above, you can use imaging Lingo to check if your sprite(the moving one) is on a white area or a coloured area of the other sprite (maze) by using "getPixel"
 
How would I go about doing that? The sprite that I'd have to use get pixel on is the one that moves. Like the code is
member("this").getpixle(x,y)
what do I put in to XY? How wood i write the code, giver the character sprite stays in the middle of the stage and the bitmap moves around.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top