On the frame:
// Setup
stop();
// Activity points
_root.activitypoint = 3;
if (_root.activitypoint<0) {
_root.mine_btn._visible = false;
_root.harvest_btn._visible = false;
_root.nextday_btn._visible = true;
}
// Day
_root.uniday = 1;
_root.uniday.text = _root.uniday;
// Ore
if (_root.minelevel>0) {
if (_root.activitypoints>0) {
_root.mine_btn._visible = true;
} else if (_root.activitypoints<1) {
_root.mine_btn._visible = false;
}
}
_root.ore = 0;
_root.ore.text = _root.ore;
// Mining Level
_root.minelevel = 1;
_root.minelevel.text = _root.minelevel;
// Produce
_root.produce = 0;
_root.produce.text = _root.produce;
_root.harvestlevel = 1;
_root.harvestlevel.text = _root.harvestlevel;
on the mine_btn
on (press) {
_root.ore += random(100)+50*_root.minelevel;
_root.activitypoint -= 1;
_root.activitypoint.text = _root.activitypoint;
}
everything has a variable name but any ideas why not working?