Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

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

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-10-2002, 11:55 AM   #1
mashnote
30rquals
 
Join Date: Feb 2002
Posts: 52
Send a message via ICQ to mashnote
Default Flash Game question

I have made a game like Pacman,maze stuff, you know.I've got like 3 different mazes for each level to make it more difficult each level.Now,what i want is,if i'm in level 2,i want the first background replaced by the second one.But i'm not sure how.I tried it with a removeMovieClip and attach the second.But that didn't work.May because the code wasn't good or something.
Anyone got any ideas ? Thanx !

*M*
mashnote is offline   Reply With Quote
Old 05-10-2002, 12:56 PM   #2
sfa
The Placid Casual
 
sfa's Avatar
 
Join Date: Oct 2001
Location: Malta
Posts: 1,026
Default

I dont see why the removeMovieClip shouldnt work but you could try just removing it from the stage or suing the _visible property. What i cant undersand is how you managed to do a packmanlike game and not this???? It should be much easier.
By the way, is the movieclip duplicated onto the stage or is it just placed there?

SFA
sfa is offline   Reply With Quote
Old 05-10-2002, 01:03 PM   #3
mashnote
30rquals
 
Join Date: Feb 2002
Posts: 52
Send a message via ICQ to mashnote
Default

yeah, i know,but we made the game with the whole class you know,like an exercise ? There's no way i could have done that by myself.
The background is placed on the stage,not attached.
mashnote is offline   Reply With Quote
Old 05-10-2002, 01:40 PM   #4
sfa
The Placid Casual
 
sfa's Avatar
 
Join Date: Oct 2001
Location: Malta
Posts: 1,026
Default

removeMovieClip will only work for attached or duplicated MCs.

SFA
sfa is offline   Reply With Quote
Old 05-10-2002, 02:06 PM   #5
mashnote
30rquals
 
Join Date: Feb 2002
Posts: 52
Send a message via ICQ to mashnote
Default

ok,i've got that.But how do you perform a hittest on an attached movie ?

Thanx by the way for your replies :-)

*M*

Last edited by mashnote; 05-10-2002 at 02:24 PM..
mashnote is offline   Reply With Quote
Old 05-10-2002, 02:22 PM   #6
sfa
The Placid Casual
 
sfa's Avatar
 
Join Date: Oct 2001
Location: Malta
Posts: 1,026
Default

Sure, just attach it into a container mc and change its position.

SFA
sfa is offline   Reply With Quote
Old 05-10-2002, 02:29 PM   #7
mashnote
30rquals
 
Join Date: Feb 2002
Posts: 52
Send a message via ICQ to mashnote
Default

ok,you answered my previous question while i was editing it..hehe.
So....i've got the attachMovie stuff and all .But how do you perform a hittest on an attached movie ?
mashnote is offline   Reply With Quote
Old 05-10-2002, 02:52 PM   #8
sfa
The Placid Casual
 
sfa's Avatar
 
Join Date: Oct 2001
Location: Malta
Posts: 1,026
Default

example - You have a movie called box and an empty movie called cont. Then you use cont.attachMovie("box","box2",2). Now the path to box2 is - _root.cont.box2.

SFA
sfa is offline   Reply With Quote
Old 05-14-2002, 04:45 PM   #9
mashnote
30rquals
 
Join Date: Feb 2002
Posts: 52
Send a message via ICQ to mashnote
Default

Ok,i get the attach & removie stuff.and it works...
But i just can't seem to get the background switch thing to work
It would be extremely cool if you would look at my file. It's not finished yet,but the basics are there.

Cheers,

*m*
Attached Files
File Type: zip gamebis.zip (97.5 KB, 136 views)
mashnote is offline   Reply With Quote
Old 05-15-2002, 08:35 AM   #10
sfa
The Placid Casual
 
sfa's Avatar
 
Join Date: Oct 2001
Location: Malta
Posts: 1,026
Default

Can you point me to the part of the script that needs fixing and what you exactly want done cause i cant be botherd to read through all that.

SFA
sfa 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
OHawk.com Flash Game Competition jorisvdb Just for Kicks Challenges 6 10-10-2004 08:30 PM
help with flash game aeon ActionScript 1.0 (and below) 0 09-09-2004 12:16 PM
Question about Flash MX Pro AS layout mmm..pi..3.14.. Other Flash General Questions 8 08-21-2004 12:00 PM
another flash 6 detection question chilakilez Simple Stuff (Newbies) 2 12-01-2003 02:11 PM
Flash game developpement question. alphabug Gaming and Game Development 2 09-03-2003 03:13 PM


All times are GMT. The time now is 10:02 PM.


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