Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Graphics Forum


You are currently viewing our Graphics Forum as a guest. Please register to participate.
Login



Reply
Old 09-14-2003, 05:26 PM Flash Maze
SmokingTequila's Avatar
Master of Disaster

Posts: 344
Location: Richmatic
Trades: 0
Can someone direct me to a Flash MX Tutorial that I can use to make a maze in Flash MX, where a visitor can use the mouse keys to go through and solve it?

Also, how could I make one with a time limit or a "competing" computer character?
__________________
I might leave in a bodybag, but never in cuffs.
SmokingTequila is offline
Reply With Quote
View Public Profile Visit SmokingTequila's homepage!
 
 
Register now for full access!
Old 09-14-2003, 06:21 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
I've no idea of any tutorials etc. on this (probably a bit specialist for tutorials) but just thinking of it from a programming point of view.
Set up an array for the maze, eg:
$maze[0,0]=W;
$maze[0,1]=P;
etc.
where W represents a wall and P represents a path, so your maze could be something like:
Code:
WWWWPWW
WWWWPWW
WWPWPWW
WWPPPWW
WWPWWWW
Start the user at a location (e.g. 5,3) and do the following:
Code:
Check that they are on a path (if not there is an error so exit)
Check the current position against the 'end' position. If it matches, show a success screen
Check square to left - if it is W or has a value less than 0 set $leftwall to true
Check square to right - if it is W or has a value greater than the width of the maze set $rightwall to true
Do similar code for $frontwall and $backwall
Now output the grapics
Code:
If $frontwall=true output a wall in front of the user, if not output a path
Do the same for left and right
Now get the user to press a key. Take this keypress and check if it is a valid move, e.g.
Code:
If $userkey=left then check that leftwall is false.
Now decrement the value for the column position in the maze
Return to the beginning
etc.
Of course thats just some pseudo-code to get you started. I've no idea how to do this in Flash! I expect with that, though, it will give you a better idea of what to look for in Flash.
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile
 
Old 10-26-2003, 08:43 PM
Average Talker

Posts: 23
Trades: 0
hmmmmm

Im not sure how you could possibly go at this. From what i see David has something going. It makes sense with the walls and paths.

Good Luck with this project!
__________________

Please login or register to view this content. Registration is FREE

Looking for a web host? Let them compete for your business.
Submit a free request and receive offers within 15 minutes
from qualifying hosts - Personal, Business, NT, Dedicated!
hvoice is offline
Reply With Quote
View Public Profile Visit hvoice's homepage!
 
Old 11-03-2003, 04:38 PM Here
Zork's Avatar
Extreme Talker

Posts: 201
Trades: 0
Macromedia has one at:

http://www.macromedia.com/devnet/mx/...aze_magic.html

Hope im not to late
__________________
"Computer games don't affect kids. I mean, if Pacman affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music..."
Zork is offline
Reply With Quote
View Public Profile
 
Old 11-13-2003, 02:38 AM
Ultra Talker

Posts: 377
Trades: 0
Try to look in Flash MX's samples. As i remember there was a sample with a maze where you have to compete with computer enemy
__________________
andrews_john

Please login or register to view this content. Registration is FREE
andrews_john is offline
Reply With Quote
View Public Profile Visit andrews_john's homepage!
 
Reply     « Reply to Flash Maze
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.91327 seconds with 12 queries