View Full Version : Make coins disappear...
Bj_Miffo
November 30th, 2004, 07:59 AM
Hi!
I'm doing a game and I need some help.
How can I make the coins disappear after I take them, enter another room and then return back.
PLEASE Help!!!
Dr Warm
December 1st, 2004, 02:35 AM
I'm not sure how u'd do this, as the frame is loaded each time u enter it, and movieclips won't retain variable information!!
u could either have something in the main timeline that checks if the movieclips have been collected, then turns them off or on, or just make it so you can't go back to the room you came from!
Elbudster
December 1st, 2004, 08:45 AM
i guess you could use global variables... declare like _global.unpicked = true; and then when its hit turn it to false or whatever, should work
SeiferTim
December 5th, 2004, 01:36 AM
You would have to keep a list of the coins in each room (most likely an array), and set them to a value to see if they've been picked up or not. A problem that may arise will be if you have a lot of rooms, then the whole system might get slowed down by trying to keep track of all the coins.
Another way would be to not remove the clip, but change it to an empty frame, and then just keep track of what frame it was on when you reload that room.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.