| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
30rquals
|
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* |
|
|
|
|
|
#2 |
|
The Placid Casual
Join Date: Oct 2001
Location: Malta
Posts: 1,026
|
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 |
|
|
|
|
|
|
|
|
#3 |
|
30rquals
|
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. |
|
|
|
|
|
#4 |
|
The Placid Casual
Join Date: Oct 2001
Location: Malta
Posts: 1,026
|
removeMovieClip will only work for attached or duplicated MCs.
SFA |
|
|
|
|
|
#5 |
|
30rquals
|
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.. |
|
|
|
|
|
#6 |
|
The Placid Casual
Join Date: Oct 2001
Location: Malta
Posts: 1,026
|
Sure, just attach it into a container mc and change its position.
SFA |
|
|
|
|
|
#7 |
|
30rquals
|
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 ? |
|
|
|
|
|
#8 |
|
The Placid Casual
Join Date: Oct 2001
Location: Malta
Posts: 1,026
|
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 |
|
|
|
|
|
#9 |
|
30rquals
|
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* |
|
|
|
|
|
#10 |
|
The Placid Casual
Join Date: Oct 2001
Location: Malta
Posts: 1,026
|
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 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |