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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hitTarget help? 1

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
I am making a maze game. I need to keep the player from going through the walls of the maze. I am having trouble getting it done.

The fla is here for now:


My actionscript is on the player mc instance and I want to keep it that way.

Thanks a lot for your help.
 
hi frozen

{file}
{sample}

Right click on the race car on the main stage and select 'actions'.

Now scroll down to the comment "if the car tries to get off the track" and check out the 'if' statement. Very simple to do.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
ps: arrow keys to move the car (you'll have to click the movie first to activate the keys, there's no auto detect in there} ;-)
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
I'm having trouble implementing this feature into my game. Do you want to take a crack at it?
 
post a link or email the fla

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
I got it working now.

Thanks for all your help!

frozenpeas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top