Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > General > Gaming and Game Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-01-2003, 07:45 PM   #1
Papa G
Registered User
 
Join Date: May 2003
Posts: 5
Default Another Game Question

I want to make a maze game. How do I make the walls impassable?
Papa G is offline   Reply With Quote
Old 05-01-2003, 10:11 PM   #2
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,875
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

You can either handle this with hitTest (if hitTest is true, dont allow movement there) or use a tile system to detect impassible portions of a gridded map. Instead of hitTest, a grid position is crossreferenced with the grid position in a lookup table which contains the valid and invalid positions of movement. If valid, move the clip, otherwise dont.

your best bet is to check around for downloadable examples. There are plenty floating around out there. (though maze examples may not be quite so abundant)
__________________
(6)
senocular is offline   Reply With Quote
Old 05-06-2003, 03:13 PM   #3
Papa G
Registered User
 
Join Date: May 2003
Posts: 5
Default More info

If it's not to much trouble could you give me an example of how to deny movement in a certain location.
Papa G is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My brain hurts (onClipEvent question) andrea_levin ActionScript 2.0 3 03-25-2004 04:23 AM


All times are GMT. The time now is 09:46 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.